[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Aptitude with ISO and network repositories?



On 2011-02-24 10:30, Russell L. Harris wrote:
* Per Dalgas Jakobsen<pdj@knaldgas.dk>  [110224 09:24]:
...
I'm sitting on a quite narrow network-link and I would like to have
Aptitude fetch package from DVD-ISO if package is present there and up
to date, otherwise from network.
Can this be done, and if so, what am I missing?
After rebooting the system as the last step of installation,
/etc/apt/sources.list has the following line, which should serve as a
guide for you:

deb cdrom:[Debian GNU/Linux sq-di-rc1 _Squeeze_ - Official Snapshot i386 NETINST Binary-1 20110108-22:52]/ squeeze main

Yes, that's one of the other things I tried to do:

:~# cat /etc/apt/sources.list
deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze contrib main

deb http://ftp.dk.debian.org/debian/ squeeze main contrib
deb-src http://ftp.dk.debian.org/debian/ squeeze main contrib

deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib

deb http://ftp.dk.debian.org/debian/ squeeze-updates main contrib
deb-src http://ftp.dk.debian.org/debian/ squeeze-updates main contrib

:~# aptitude update
Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15] squeeze Release.gpg Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze/contrib Translation-en Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze/contrib Translation-en_US Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze/main Translation-en Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze/main Translation-en_US Ign cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15] squeeze Release Err cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15] squeeze/contrib amd64 Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs Err cdrom://[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15] squeeze/main amd64 Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
...

I'm afraid I'm still lost...
Something else I might have missed?

~Per


Reply to: