PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > apt-get file:/; unloading kernel modules (2.6.18).
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

apt-get file:/; unloading kernel modules (2.6.18).

Réponse
 
LinkBack Outils de la discussion
Vieux 28/09/2007, 07h20   #1
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Vieux 28/09/2007, 22h40   #2
Florian Kulzer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Vieux 29/09/2007, 14h40   #3
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

> 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
  Réponse avec citation
Vieux 29/09/2007, 17h40   #4
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Vieux 29/09/2007, 23h50   #5
Florian Kulzer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Vieux 30/09/2007, 01h30   #6
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

> 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
  Réponse avec citation
Vieux 30/09/2007, 01h30   #7
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Vieux 30/09/2007, 05h50   #8
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Vieux 30/09/2007, 05h50   #9
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

> 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
  Réponse avec citation
Vieux 30/09/2007, 07h30   #10
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

> 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
  Réponse avec citation
Vieux 30/09/2007, 07h30   #11
Vivek.M
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apt-get file:/; unloading kernel modules (2.6.18).

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h30.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,21297 seconds with 19 queries