|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
1. I have copied my Debian CDs to hard-disk and have added the required sources.list lines. The problem is that, when i do a apt-get install pkg, it tries to load from the internet since they have the latest pkg. Since i pay for data transfer, i was wondering if there was a way to tell apt-get to use file:/ instead of the net? Obviously i don't want to hash out my http:// and ftp:// source.list, lines because i do install from the net from time to time - also, every time i hash in the net lines apt will redownload meta-data and upto 5-6MB goes waste. dpkg -i /verylongPath is not an option - i want this working in apt- get. 2. Is there a way to tell the debian kernel module not to load certain modules. Blacklisting doesn't seem to be the right way from what i understood of the man modprobe.conf page. I've got pcspkr, rtc, ipv6, ali_agp, processor etc loaded and i don;t want to rmmod them - i'd rather not have them load. Is there any way to do this? I am using Debian Etch, kernel -2.6.18-5-486. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Thu, Sep 27, 2007 at 21:54:45 -0700, Vivek.M wrote:
> Hi, > > 1. I have copied my Debian CDs to hard-disk and have added the > required sources.list lines. The problem is that, when i do a apt-get > install pkg, it tries to load from the internet since they have the > latest pkg. Since i pay for data transfer, i was wondering if there > was a way to tell apt-get to use file:/ instead of the net? See the manpage of apt_preferences. (search for "local site") [...] > 2. Is there a way to tell the debian kernel module not to load certain > modules. Blacklisting doesn't seem to be the right way from what i > understood of the man modprobe.conf page. I've got pcspkr, rtc, ipv6, > ali_agp, processor etc loaded and i don;t want to rmmod them - i'd > rather not have them load. Is there any way to do this? See "blacklist" in the manpage of modprobe.conf. Sometimes it can be necessary to use "install MODULENAME /bin/true" in addition to the blacklisting. > I am using Debian Etch, kernel -2.6.18-5-486. -- Regards, | http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
> See the manpage of apt_preferences. (search for "local
> site") Hi, and thanks for ing out. It's not working ![]() I tried: Package: * Pin: origin "" Pin-Priority: 1001 Also tried: Pin: origin apt-cache policy xchat; prints a priority of 500 for both file and http. I took a look at the apt-howto and then looked at the following file: /var/lib/apt/lists/ftp.us.debian.org_debian_dists_etch_main_binary- i386_Packages This file is supposed to contain: *Archive: stable Version: 2.2r3 *Component: main *Origin: Debian *Label: Debian Architecture: i386 But the *'d info is missing. I also took a look at this file: /var/lib/apt/lists/_usr_share_debian_disc1_dists_etch_main_binary- i386_Packages It has only this info: Package: adduser Priority: important Section: admin Installed-Size: 900 Maintainer: Debian Adduser Developers <adduser- devel@lists.alioth.debian.org> Architecture: all Version: 3.102 Note that this meta-data lacks an information regarding origin (http/ file/ftp) is missing? Since, Pin: release/origin need to be fed parameters (Label, Archive, Origin) to filter on, i guess that is the reason why it doesn't work?? > See "blacklist" in the manpage of modprobe.conf. Sometimes > it can be necessary to use "install MODULENAME /bin/true" > in addition to the blacklisting. This didn't work either ![]() darkstar> cat /etc/modprobe.d/blockedMods install fan /bin/true install thermal /bin/true install processor /bin/true Also, contents of: /etc/modprobe.d/blacklist blacklist fan blacklist thermal blacklist processor -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Update: This works:
Package: * Pin: origin http.us.debian.org Pin-Priority: 100 But, this does not work: Package: * Pin: origin Pin-Priority: 100 I did not run dpkg-scanpackages. Instead i mounted my iso images via loop, and put this in source.list. deb file:/usr/share/debian/pkg/disc1/ etch contrib main -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Sat, Sep 29, 2007 at 05:11:56 -0700, Vivek.M wrote:
[...] > > See "blacklist" in the manpage of modprobe.conf. Sometimes > > it can be necessary to use "install MODULENAME /bin/true" > > in addition to the blacklisting. > > This didn't work either ![]() > > darkstar> cat /etc/modprobe.d/blockedMods > install fan /bin/true > install thermal /bin/true > install processor /bin/true > > Also, contents of: /etc/modprobe.d/blacklist > > blacklist fan > blacklist thermal > blacklist processor Are you using an initrd? (Using an initrd is the default for the stock Debian kernels.) Maybe the modules are included in your initrd and loaded so early in the boot process that the modprobe.d settings are bypassed. You can check your initrd like this: zcat /boot/initrd.img-$(uname -r) | cpio --list | egrep 'fan|thermal|processor' (I know that this works for yaird-generated initrds, and I think it should also work with the ones from mkinitrd.) -- Regards, | http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
> See the manpage of apt_preferences. (search for "local
> site") Hi, and thanks for ing out. It's not working ![]() I tried: Package: * Pin: origin "" Pin-Priority: 1001 Also tried: Pin: origin apt-cache policy xchat; prints a priority of 500 for both file and http. I took a look at the apt-howto and then looked at the following file: /var/lib/apt/lists/ftp.us.debian.org_debian_dists_etch_main_binary- i386_Packages This file is supposed to contain: *Archive: stable Version: 2.2r3 *Component: main *Origin: Debian *Label: Debian Architecture: i386 But the *'d info is missing. I also took a look at this file: /var/lib/apt/lists/_usr_share_debian_disc1_dists_etch_main_binary- i386_Packages It has only this info: Package: adduser Priority: important Section: admin Installed-Size: 900 Maintainer: Debian Adduser Developers <adduser- devel@lists.alioth.debian.org> Architecture: all Version: 3.102 Note that this meta-data lacks an information regarding origin (http/ file/ftp) is missing? Since, Pin: release/origin need to be fed parameters (Label, Archive, Origin) to filter on, i guess that is the reason why it doesn't work?? > See "blacklist" in the manpage of modprobe.conf. Sometimes > it can be necessary to use "install MODULENAME /bin/true" > in addition to the blacklisting. This didn't work either ![]() darkstar> cat /etc/modprobe.d/blockedMods install fan /bin/true install thermal /bin/true install processor /bin/true Also, contents of: /etc/modprobe.d/blacklist blacklist fan blacklist thermal blacklist processor -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Update: This works:
Package: * Pin: origin http.us.debian.org Pin-Priority: 100 But, this does not work: Package: * Pin: origin Pin-Priority: 100 I did not run dpkg-scanpackages. Instead i mounted my iso images via loop, and put this in source.list. deb file:/usr/share/debian/pkg/disc1/ etch contrib main -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
Update: This works:
Package: * Pin: origin http.us.debian.org Pin-Priority: 100 But, this does not work: Package: * Pin: origin Pin-Priority: 100 I did not run dpkg-scanpackages. Instead i mounted my iso images via loop, and put this in source.list. deb file:/usr/share/debian/pkg/disc1/ etch contrib main -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org ... -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
> See the manpage of apt_preferences. (search for "local
> site") Hi, and thanks for ing out. It's not working ![]() I tried: Package: * Pin: origin "" Pin-Priority: 1001 Also tried: Pin: origin apt-cache policy xchat; prints a priority of 500 for both file and http. I took a look at the apt-howto and then looked at the following file: /var/lib/apt/lists/ftp.us.debian.org_debian_dists_etch_main_binary- i386_Packages This file is supposed to contain: *Archive: stable Version: 2.2r3 *Component: main *Origin: Debian *Label: Debian Architecture: i386 But the *'d info is missing. I also took a look at this file: /var/lib/apt/lists/_usr_share_debian_disc1_dists_etch_main_binary- i386_Packages It has only this info: Package: adduser Priority: important Section: admin Installed-Size: 900 Maintainer: Debian Adduser Developers <adduser- devel@lists.alioth.debian.org> Architecture: all Version: 3.102 Note that this meta-data lacks an information regarding origin (http/ file/ftp) is missing? Since, Pin: release/origin need to be fed parameters (Label, Archive, Origin) to filter on, i guess that is the reason why it doesn't work?? > See "blacklist" in the manpage of modprobe.conf. Sometimes > it can be necessary to use "install MODULENAME /bin/true" > in addition to the blacklisting. This didn't work either ![]() darkstar> cat /etc/modprobe.d/blockedMods install fan /bin/true install thermal /bin/true install processor /bin/true Also, contents of: /etc/modprobe.d/blacklist blacklist fan blacklist thermal blacklist processor -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org ... -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
> See the manpage of apt_preferences. (search for "local
> site") Hi, and thanks for ing out. It's not working ![]() I tried: Package: * Pin: origin "" Pin-Priority: 1001 Also tried: Pin: origin apt-cache policy xchat; prints a priority of 500 for both file and http. I took a look at the apt-howto and then looked at the following file: /var/lib/apt/lists/ftp.us.debian.org_debian_dists_etch_main_binary- i386_Packages This file is supposed to contain: *Archive: stable Version: 2.2r3 *Component: main *Origin: Debian *Label: Debian Architecture: i386 But the *'d info is missing. I also took a look at this file: /var/lib/apt/lists/_usr_share_debian_disc1_dists_etch_main_binary- i386_Packages It has only this info: Package: adduser Priority: important Section: admin Installed-Size: 900 Maintainer: Debian Adduser Developers <adduser- devel@lists.alioth.debian.org> Architecture: all Version: 3.102 Note that this meta-data lacks an information regarding origin (http/ file/ftp) is missing? Since, Pin: release/origin need to be fed parameters (Label, Archive, Origin) to filter on, i guess that is the reason why it doesn't work?? > See "blacklist" in the manpage of modprobe.conf. Sometimes > it can be necessary to use "install MODULENAME /bin/true" > in addition to the blacklisting. This didn't work either ![]() darkstar> cat /etc/modprobe.d/blockedMods install fan /bin/true install thermal /bin/true install processor /bin/true Also, contents of: /etc/modprobe.d/blacklist blacklist fan blacklist thermal blacklist processor -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .... -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org ... -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
Update: This works:
Package: * Pin: origin http.us.debian.org Pin-Priority: 100 But, this does not work: Package: * Pin: origin Pin-Priority: 100 I did not run dpkg-scanpackages. Instead i mounted my iso images via loop, and put this in source.list. deb file:/usr/share/debian/pkg/disc1/ etch contrib main -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .... -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org ... -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org .. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
![]() |
| Outils de la discussion | |
|
|