PDA

View Full Version : Request Info regarding current menu items for Knoppix 6.2.1 etc/apt/sources.list



rajibando
05-02-2015, 01:21 PM
Dear Mods and members,
I have a very old laptop of 2006 which is still in prestine condition and runs best in Knoppix 6.2.1. Later versions slow it down.

Of late I realised that I need to update the /etc/apt/sources.list to include certain packages. However, Debian Lenny has since moved to Archive. I would need to change the sources.list entries. Lenny archive is straightforward. Security info and line is bit complicated, I can't implement it.
Please advise.
Regards

Werner P. Schulz
05-02-2015, 09:45 PM
Perhaps https://www.howtoforge.com/using-old-debian-versions-in-your-sources.list may help you. Now also Debian wheezy is oldstable and without security support.

rajibando
05-03-2015, 05:07 AM
I thought since knoppix is a mix it would be complicated. However it appears straightforward! I was also worried about my invalid keys. Mant thanks!

rajibando
05-03-2015, 07:39 AM
apologies: two typos - (prestine and mant) Pristine and Many :-(

rajibando
05-03-2015, 08:46 AM
Read till the end:

My current sources.list:

# Debian/Lenny is the stable base for this installation.
# For update of key, apt-get install debian-archive-keyring
deb http://archive.debian.org/debian/ lenny contrib main non-free
deb http://archive.debian.org/debian-security lenny/updates main contrib non-free

# testing/unstable/experimental contain newer versions, but
# packages from there are not being installed by default, unless
# they came from there in the first place.
deb http://ftp.de.debian.org/debian squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.de.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.de.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free

# Debian/volatile contains quickly changing data like spam- and virusfilter databases
# deb http://volatile.debian.org/debian-volatile stable/volatile main contrib non-free

# Knoppix repository
# deb http://debian-knoppix.alioth.debian.org ./

My /etc/apt/apt.conf.d/70debconf file:

// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
// DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
APT::Cache::Limit "100000000";



apt-get clean && apt-get update --fix-missing yields:


Get:1 http://archive.debian.org lenny Release.gpg [1034B]
Get:2 http://ftp.de.debian.org squeeze Release.gpg [1655B]
.........
and 500 lines blah blah ...
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

Increased the apt size to 100000000 in 70debconf, removed comment:

// DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
APT::Cache::Limit "200000000";
from 70debconf . Result:

apt-get clean && apt-get: update --fix-missing
Err http://archive.debian.org lenny Release.gpg
Cannot initiate the connection to archive.debian.org:80 (2607:f8f0:610:4000:6564:a62:ce0c:137e). - connect (101: Network is unreachable) [IP: 2607:f8f0:610:4000:6564:a62:ce0c:137e 80]
...
and 1000 blah blah ...


Nothing appeared to work, grrrrr ...:mad: http://knoppix.net/forum/images/icons/icon8.png

Lastly, I found that
APT::Cache::Limit "100000000"; was actually to be:
APT::Cache-Limit "100000000";

:twisted:

Werner P. Schulz
05-03-2015, 09:15 AM
Hello Rajib!

Not only lenny, but also squeeze and wheezy are outdated and without security support (https://www.debian.org/releases/); therefore you cannot use these within the sources.lst.

rajibando
05-03-2015, 07:21 PM
The earlier post was regarding "-" instead of "::".
However, since you have already stated the question I would have asked next, tell me a workaround Please.

Werner P. Schulz
05-03-2015, 09:44 PM
The usual way to define APT::Cache-Limit is within '/etc/apt/conf' (→ man apt.conf); but also the Knoppix way will do it: within '/etc/apt/apt.conf.d/00knoppix'
APT::Cache-Limit 80000000;

apt-get clean && apt-get: update --fix-missing Err http://archive.debian.org lenny Release.gpg"http://archive.debian.org" is wrong; it has to be "http://archive.debian.org/debian"
What do you get for
apt-config dump |grep Releaseand
lsb_release -rd

rajibando
05-04-2015, 08:31 AM
Dear Mr. Schulz,
I didn't have any problem with the APT::cache line. It was already rectified and resized.
My sources.list doesn't have the lines with errors. So where is the error :: http://archive.debian.org lenny Release.gpg :: coming from?
Here are the complete list of apt related files:

/.
/etc
/etc/apt
/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/01autoremove
/etc/apt/preferences.d
/etc/apt/sources.list.d
/etc/apt/trusted.gpg.d
/etc/cron.daily
/etc/cron.daily/apt
/etc/logrotate.d
/etc/logrotate.d/apt
/usr
/usr/bin
/usr/bin/apt-cache
/usr/bin/apt-cdrom
/usr/bin/apt-config
/usr/bin/apt-get
/usr/bin/apt-key
/usr/bin/apt-mark
/usr/lib
/usr/lib/apt
/usr/lib/apt/methods
/usr/lib/apt/methods/bzip2
/usr/lib/apt/methods/cdrom
/usr/lib/apt/methods/copy
/usr/lib/apt/methods/file
/usr/lib/apt/methods/ftp
/usr/lib/apt/methods/gpgv
/usr/lib/apt/methods/gzip
/usr/lib/apt/methods/http
/usr/lib/apt/methods/lzma
/usr/lib/apt/methods/mirror
/usr/lib/apt/methods/rred
/usr/lib/apt/methods/rsh
/usr/lib/apt/methods/ssh
/usr/lib/apt/methods/xz
/usr/lib/apt/solvers
/usr/lib/dpkg
/usr/lib/dpkg/methods
/usr/lib/dpkg/methods/apt
/usr/lib/dpkg/methods/apt/desc.apt
/usr/lib/dpkg/methods/apt/install
/usr/lib/dpkg/methods/apt/names
/usr/lib/dpkg/methods/apt/setup
/usr/lib/dpkg/methods/apt/update
/usr/share
/usr/share/bug
/usr/share/bug/apt
/usr/share/bug/apt/script
/usr/share/doc
/usr/share/doc/apt
/usr/share/doc/apt/NEWS.Debian.gz
/usr/share/doc/apt/changelog.gz
/usr/share/doc/apt/copyright
/usr/share/doc/apt/examples
/usr/share/doc/apt/examples/apt-https-method-example.conf.gz
/usr/share/doc/apt/examples/apt.conf
/usr/share/doc/apt/examples/configure-index.gz
/usr/share/doc/apt/examples/sources.list
/usr/share/locale
/usr/share/locale/ar
/usr/share/locale/ar/LC_MESSAGES
/usr/share/locale/ar/LC_MESSAGES/apt.mo
/usr/share/locale/ast
/usr/share/locale/ast/LC_MESSAGES
/usr/share/locale/ast/LC_MESSAGES/apt.mo
/usr/share/locale/bg
/usr/share/locale/bg/LC_MESSAGES
/usr/share/locale/bg/LC_MESSAGES/apt.mo
/usr/share/locale/bs
/usr/share/locale/bs/LC_MESSAGES
/usr/share/locale/bs/LC_MESSAGES/apt.mo
/usr/share/locale/ca
/usr/share/locale/ca/LC_MESSAGES
/usr/share/locale/ca/LC_MESSAGES/apt.mo
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/apt.mo
/usr/share/locale/cy
/usr/share/locale/cy/LC_MESSAGES
/usr/share/locale/cy/LC_MESSAGES/apt.mo
/usr/share/locale/da
/usr/share/locale/da/LC_MESSAGES
/usr/share/locale/da/LC_MESSAGES/apt.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/apt.mo
/usr/share/locale/dz
/usr/share/locale/dz/LC_MESSAGES
/usr/share/locale/dz/LC_MESSAGES/apt.mo
/usr/share/locale/el
/usr/share/locale/el/LC_MESSAGES
/usr/share/locale/el/LC_MESSAGES/apt.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/apt.mo
/usr/share/locale/eu
/usr/share/locale/eu/LC_MESSAGES
/usr/share/locale/eu/LC_MESSAGES/apt.mo
/usr/share/locale/fi
/usr/share/locale/fi/LC_MESSAGES
/usr/share/locale/fi/LC_MESSAGES/apt.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/apt.mo
/usr/share/locale/gl
/usr/share/locale/gl/LC_MESSAGES
/usr/share/locale/gl/LC_MESSAGES/apt.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/apt.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/apt.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/apt.mo
/usr/share/locale/km
/usr/share/locale/km/LC_MESSAGES
/usr/share/locale/km/LC_MESSAGES/apt.mo
/usr/share/locale/ko
/usr/share/locale/ko/LC_MESSAGES
/usr/share/locale/ko/LC_MESSAGES/apt.mo
/usr/share/locale/ku
/usr/share/locale/ku/LC_MESSAGES
/usr/share/locale/ku/LC_MESSAGES/apt.mo
/usr/share/locale/lt
/usr/share/locale/lt/LC_MESSAGES
/usr/share/locale/lt/LC_MESSAGES/apt.mo
/usr/share/locale/mr
/usr/share/locale/mr/LC_MESSAGES
/usr/share/locale/mr/LC_MESSAGES/apt.mo
/usr/share/locale/nb
/usr/share/locale/nb/LC_MESSAGES
/usr/share/locale/nb/LC_MESSAGES/apt.mo
/usr/share/locale/ne
/usr/share/locale/ne/LC_MESSAGES
/usr/share/locale/ne/LC_MESSAGES/apt.mo
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/apt.mo
/usr/share/locale/nn
/usr/share/locale/nn/LC_MESSAGES
/usr/share/locale/nn/LC_MESSAGES/apt.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/apt.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/apt.mo
/usr/share/locale/pt_BR/LC_MESSAGES/apt.mo
/usr/share/locale/ro/LC_MESSAGES/apt.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/apt.mo
/usr/share/locale/sk
/usr/share/locale/sk/LC_MESSAGES
/usr/share/locale/sk/LC_MESSAGES/apt.mo
/usr/share/locale/sl
/usr/share/locale/sl/LC_MESSAGES
/usr/share/locale/sl/LC_MESSAGES/apt.mo
/usr/share/locale/sv/LC_MESSAGES/apt.mo
/usr/share/locale/th
/usr/share/locale/th/LC_MESSAGES
/usr/share/locale/th/LC_MESSAGES/apt.mo
/usr/share/locale/tl
/usr/share/locale/tl/LC_MESSAGES
/usr/share/locale/tl/LC_MESSAGES/apt.mo
/usr/share/locale/uk
/usr/share/locale/uk/LC_MESSAGES
/usr/share/locale/uk/LC_MESSAGES/apt.mo
/usr/share/locale/vi/LC_MESSAGES/apt.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/apt.mo
/usr/share/locale/zh_TW
/usr/share/locale/zh_TW/LC_MESSAGES
/usr/share/locale/zh_TW/LC_MESSAGES/apt.mo
/usr/share/man
/usr/share/man/de
/usr/share/man/de/man5
/usr/share/man/de/man5/apt.conf.5.gz
/usr/share/man/de/man5/apt_preferences.5.gz
/usr/share/man/de/man5/sources.list.5.gz
/usr/share/man/de/man8
/usr/share/man/de/man8/apt-cache.8.gz
/usr/share/man/de/man8/apt-cdrom.8.gz
/usr/share/man/de/man8/apt-config.8.gz
/usr/share/man/de/man8/apt-get.8.gz
/usr/share/man/de/man8/apt-key.8.gz
/usr/share/man/de/man8/apt-mark.8.gz
/usr/share/man/de/man8/apt-secure.8.gz
/usr/share/man/es
/usr/share/man/es/man5
/usr/share/man/es/man5/apt.conf.5.gz
/usr/share/man/es/man5/apt_preferences.5.gz
/usr/share/man/es/man5/sources.list.5.gz
/usr/share/man/es/man8
/usr/share/man/es/man8/apt-cache.8.gz
/usr/share/man/es/man8/apt-cdrom.8.gz
/usr/share/man/es/man8/apt-config.8.gz
/usr/share/man/es/man8/apt-get.8.gz
/usr/share/man/es/man8/apt-key.8.gz
/usr/share/man/es/man8/apt-mark.8.gz
/usr/share/man/es/man8/apt-secure.8.gz
/usr/share/man/fr
/usr/share/man/fr/man5
/usr/share/man/fr/man5/apt.conf.5.gz
/usr/share/man/fr/man5/apt_preferences.5.gz
/usr/share/man/fr/man5/sources.list.5.gz
/usr/share/man/fr/man8
/usr/share/man/fr/man8/apt-cache.8.gz
/usr/share/man/fr/man8/apt-cdrom.8.gz
/usr/share/man/fr/man8/apt-config.8.gz
/usr/share/man/fr/man8/apt-get.8.gz
/usr/share/man/fr/man8/apt-key.8.gz
/usr/share/man/fr/man8/apt-mark.8.gz
/usr/share/man/fr/man8/apt-secure.8.gz
/usr/share/man/ja
/usr/share/man/ja/man5
/usr/share/man/ja/man5/apt.conf.5.gz
/usr/share/man/ja/man5/apt_preferences.5.gz
/usr/share/man/ja/man5/sources.list.5.gz
/usr/share/man/ja/man8
/usr/share/man/ja/man8/apt-cache.8.gz
/usr/share/man/ja/man8/apt-cdrom.8.gz
/usr/share/man/ja/man8/apt-config.8.gz
/usr/share/man/ja/man8/apt-get.8.gz
/usr/share/man/ja/man8/apt-key.8.gz
/usr/share/man/ja/man8/apt-mark.8.gz
/usr/share/man/ja/man8/apt-secure.8.gz
/usr/share/man/man5
/usr/share/man/man5/apt.conf.5.gz
/usr/share/man/man5/apt_preferences.5.gz
/usr/share/man/man5/sources.list.5.gz
/usr/share/man/man8
/usr/share/man/man8/apt-cache.8.gz
/usr/share/man/man8/apt-cdrom.8.gz
/usr/share/man/man8/apt-config.8.gz
/usr/share/man/man8/apt-get.8.gz
/usr/share/man/man8/apt-key.8.gz
/usr/share/man/man8/apt-mark.8.gz
/usr/share/man/man8/apt-secure.8.gz
/usr/share/man/man8/apt.8.gz
/usr/share/man/pl
/usr/share/man/pl/man5
/usr/share/man/pl/man5/apt_preferences.5.gz
/usr/share/man/pl/man5/sources.list.5.gz
/usr/share/man/pl/man8
/usr/share/man/pl/man8/apt-cache.8.gz
/usr/share/man/pl/man8/apt-cdrom.8.gz
/usr/share/man/pl/man8/apt-config.8.gz
/usr/share/man/pl/man8/apt-get.8.gz
/usr/share/man/pl/man8/apt-key.8.gz
/usr/share/man/pl/man8/apt-mark.8.gz
/usr/share/man/pl/man8/apt-secure.8.gz
/usr/share/man/pt
/usr/share/man/pt/man5
/usr/share/man/pt/man5/apt.conf.5.gz
/usr/share/man/pt/man5/apt_preferences.5.gz
/usr/share/man/pt/man5/sources.list.5.gz
/usr/share/man/pt/man8
/usr/share/man/pt/man8/apt-cache.8.gz
/usr/share/man/pt/man8/apt-cdrom.8.gz
/usr/share/man/pt/man8/apt-config.8.gz
/usr/share/man/pt/man8/apt-get.8.gz
/usr/share/man/pt/man8/apt-key.8.gz
/usr/share/man/pt/man8/apt-mark.8.gz
/usr/share/man/pt/man8/apt-secure.8.gz
/var
/var/cache
/var/cache/apt
/var/cache/apt/archives
/var/cache/apt/archives/partial
/var/lib
/var/lib/apt
/var/lib/apt/lists
/var/lib/apt/lists/partial
/var/lib/apt/mirrors
/var/lib/apt/mirrors/partial
/var/lib/apt/periodic
/var/log
/var/log/apt

Of these only these three appear to control things:

/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/01autoremove
/etc/apt/preferences.d
/etc/apt/sources.list.d

Of these, these two files have the same entries: /etc/apt/preferences.d and /etc/apt/sources.list.d . The entry directs to /UNIONONFS/etc/apt/ blah blah.
So I went to those files. They are empty.
Which files do you intend to change using your following codes:
(1) apt-get clean && apt-get: update --fix-missing Err http://archive.debian.org lenny Release.gpg
(2) apt-config dump |grep Release gives APT::Default-Release "Stable"
(3) lsb_release -rd gives Debian 5.0.10

Werner P. Schulz
05-05-2015, 09:21 AM
You may try a sources.lst only containing this line
deb http://archive.debian.org/debian/ lenny contrib main non-free and now

su
aptitude update
apt-key updateto solve the GPG-error.

But I fear you'll never get a working apt-cache for your very old Knoppix installation based on Debian lenny. If you doesn't have a backup of the Knoppix installation, then the apt-cache is already destroyed. With Debian you can update/upgrade from one release to the next following release. As I know it's impossible to skip two releases.

rajibando
05-06-2015, 04:56 AM
Yes, sir, I understand that.
But please also address my query: So where is the error :: http://archive.debian.org (http://archive.debian.org/) lenny Release.gpg :: coming from?
I have changed the line.
I have an idea regarding the GPG keys. If I am successful I will post in the forum.
Regards

Werner P. Schulz
05-06-2015, 09:03 AM
But please also address my query: So where is the error :: http://archive.debian.org (http://archive.debian.org/) lenny Release.gpg :: coming from?I don't know. I fear it's an effect of using a very old release and the installed tool "debian-archive-keyring" causes the error.