Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I think the reason you are seeing this is because your /etc/apt/sources.list contains lines which say "stable" and lines which say "lenny". This has lead to your system being updated to the present stable (squeeze). The 404 will likely be because, with lenny being older, the particular mirror that your sources.list points to has removed the lenny packages.
The way to solve this is to remove the lines that point to lenny in your sources.list and, unless you want to automatically update to wheezy when that becomes stable, replace "stable" with "wheezy". If you're unsure how to do this then post your sources.list and I'm sure we'll be able to work it out.
I think the reason you are seeing this is because your /etc/apt/sources.list contains lines which say "stable" and lines which say "lenny". This has lead to your system being updated to the present stable (squeeze).
Ok thanks - do you mean that my Debian has updated itself from lenny to squeeze automatically without waiting for any command?
Quote:
The 404 will likely be because, with lenny being older, the particular mirror that your sources.list points to has removed the lenny packages.
The way to solve this is to remove the lines that point to lenny in your sources.list and, unless you want to automatically update to wheezy when that becomes stable, replace "stable" with "wheezy". If you're unsure how to do this then post your sources.list and I'm sure we'll be able to work it out.
Ok here it is, thanks...
Code:
$ cat /etc/apt/sources.list
deb http://ftp.ca.debian.org/debian stable main contrib non-free
deb http://ftp.de.debian.org/debian lenny main contrib non-free
deb http://ftp.de.debian.org/debian-volatile lenny/volatile main contrib non-fre e
deb http://ftp.de.debian.org/debian-security lenny/updates main contrib non-free
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
$
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I think that is what has happened, yes. Looking at your sources.list there's only one line pointing to stable so I would remove that and change the rest from lenny to squeeze leaving it like this.
Code:
deb http://ftp.de.debian.org/debian squeeze main contrib non-free
deb http://ftp.de.debian.org/debian-volatile squeeze/volatile main contrib non-free
deb http://ftp.de.debian.org/debian-security squeeze/updates main contrib non-free
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
I would then run "apt-get update" then "apt-get dist-upgrade" but don't just answer "y" -- check the list of proposed updates. If any, and if there are a lot of packages or kernel packages I may have been wrong in my assessment so please select "n" and post the result if that is the case. If there are no proposed updates, or just the usual couple of small packages go right ahead and upgrade and all should be well.
I think that is what has happened, yes. Looking at your sources.list there's only one line pointing to stable so I would remove that and change the rest from lenny to squeeze leaving it like this.
Code:
deb http://ftp.de.debian.org/debian squeeze main contrib non-free
deb http://ftp.de.debian.org/debian-volatile squeeze/volatile main contrib non-free
deb http://ftp.de.debian.org/debian-security squeeze/updates main contrib non-free
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
I would then run "apt-get update"...
Thanks but I still get 404s - is that ok?
Code:
cat /etc/apt/sources.list
deb http://ftp.ca.debian.org/debian squeeze main contrib non-free
deb http://ftp.de.debian.org/debian-volatile squeeze/volatile main contrib non-free
deb http://ftp.de.debian.org/debian-security squeeze/updates main contrib non-free
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
$ sudo apt-get update
Get:1 http://ftp.ca.debian.org squeeze Release.gpg [1672B]
Get:2 http://ftp.ca.debian.org squeeze Release [99.8kB]
Ign http://ftp.de.debian.org squeeze/volatile Release.gpg
Get:3 http://ftp.de.debian.org squeeze/updates Release.gpg [836B]
Get:4 http://ftp.ca.debian.org squeeze/main Packages [6540kB]
Get:5 http://packages.dotdeb.org squeeze Release.gpg [836B]
Get:6 http://packages.dotdeb.org squeeze Release [2284B]
Ign http://packages.dotdeb.org squeeze Release
Ign http://ftp.de.debian.org squeeze/volatile Release
Get:7 http://packages.dotdeb.org squeeze/all Packages [19.9kB]
Get:8 http://packages.dotdeb.org squeeze/all Sources [4840B]
Get:9 http://ftp.de.debian.org squeeze/updates Release [87.0kB]
Ign http://ftp.de.debian.org squeeze/volatile/main Packages
Ign http://ftp.de.debian.org squeeze/volatile/contrib Packages
Ign http://ftp.de.debian.org squeeze/volatile/non-free Packages
Get:10 http://ftp.de.debian.org squeeze/updates/main Packages [304kB]
Get:11 http://ftp.de.debian.org squeeze/updates/contrib Packages [681B]
Get:12 http://ftp.de.debian.org squeeze/updates/non-free Packages [14B]
Ign http://ftp.de.debian.org squeeze/volatile/main Packages
Ign http://ftp.de.debian.org squeeze/volatile/contrib Packages
Ign http://ftp.de.debian.org squeeze/volatile/non-free Packages
Err http://ftp.de.debian.org squeeze/volatile/main Packages
404 Not Found
Err http://ftp.de.debian.org squeeze/volatile/contrib Packages
404 Not Found
Err http://ftp.de.debian.org squeeze/volatile/non-free Packages
404 Not Found
Get:13 http://ftp.ca.debian.org squeeze/contrib Packages [53.0kB]
Get:14 http://ftp.ca.debian.org squeeze/non-free Packages [102kB]
Fetched 7217kB in 16s (439kB/s)
W: GPG error: http://packages.dotdeb.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E9C74FEEA2098A6E
W: Failed to fetch http://ftp.de.debian.org/debian-volatile/dists/squeeze/volatile/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ftp.de.debian.org/debian-volatile/dists/squeeze/volatile/contrib/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ftp.de.debian.org/debian-volatile/dists/squeeze/volatile/non-free/binary-amd64/Packages 404 Not Found
E: Some index files failed to download, they have been ignored, or old ones used instead.
$
deb http://ftp.de.debian.org/debian squeeze main contrib non-free
# volatile - deprecated
#deb http://ftp.de.debian.org/debian-volatile squeeze/volatile main contrib non-free
# the below line replaces volatile
deb http://ftp.de.debian.org/debian squeeze-updates main contrib non-free
deb http://ftp.de.debian.org/debian-security squeeze/updates main contrib non-free
# no idea what this is but disable it for now as it's a 3rd party repo.
#deb http://packages.dotdeb.org squeeze all
#deb-src http://packages.dotdeb.org squeeze all
Then do:
Code:
# apt-get clean ; apt-get update
Then go and read the release notes for Debian squeeze for upgrading from Lenny to Squeeze. You will need to install the 2.6.32 the kernel first and reboot into it before continuing - the upgrade is not straightforward.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
My apologies, volatile is now squeeze-updates, as shown here:
lists.debian.org/debian-volatile-announce/2012/msg00000.html
If you change these it will get rid of the 404.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
This was why I suggested running "apt-get dist-upgrade" but saying no to it. If there is a huge list or the kernel is in there then you're not running squeeze but if it's only a few programs or nothing then you are. It is slightly risky in that you have to be very careful to hit 'n' if there's a list. The other think to do is run "uname -a" as that might tell you where you stand.
This was why I suggested running "apt-get dist-upgrade" but saying no to it. If there is a huge list or the kernel is in there then you're not running squeeze but if it's only a few programs or nothing then you are. It is slightly risky in that you have to be very careful to hit 'n' if there's a list. The other think to do is run "uname -a" as that might tell you where you stand.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Hmm, that is a long list. When was the last time you updated? a thought also occurs, what is the result of uname -a and what happens when you do the same (pressing n at the relevant point) with apt-get update?
If this were my personal system I'd go right ahead with the dist-upgrade but if this is a production system or one you can't afford to let fail then more care will be in order.
Hmm, that is a long list. When was the last time you updated?
This would be my first update
Quote:
a thought also occurs, what is the result of uname -a
Code:
$ uname -a
Linux vps-156xxxx-xx91.manage.myhosting.com 2.6.32-042stab063.2 #1 SMP Tue Oct 23 16:24:09 MSK 2012 x86_64 GNU/Linux
$ cat /proc/version
Linux version 2.6.32-042stab063.2 (root@rh6-build-x64) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Tue Oct 23 16:24:09 MSK 2012
$
Quote:
and what happens when you do the same (pressing n at the relevant point) with apt-get update?
I already did that (above) or did you mean something else (like $ apt-get upgrade)?
Quote:
If this were my personal system I'd go right ahead with the dist-upgrade but if this is a production system or one you can't afford to let fail then more care will be in order.
Well yes it has important websites which I am expecting to move to a different server anyway in a few weeks so I guess I will do that first and then come back to this just for fun.
So anyway should I conclude that it is Lenny even though it says:
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
No to hijack this thread but I have some concerning about upgrading in Debian too. I have been Ubuntu user for a while and whenever there is a new distro release the upgrade manager usually does a good job notifying me that a new release is available.
Now I know there is a new release for Debian coming out on 05-05-13. Would I be able to upgrade my release and fix whatever bug I might have or, will I have to do a manual upgrade by downloading the distro into a CD and then perform the upgrade like is done with other distros?
This will be my first time upgrading Debian and I really dont know how is done.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Juc1 Sorry, I meant "apt-get upgrade" rather than "apt-get dist-upgrade" (blame my muscle memory).
If it's your first update that would explain it -- I would wait until you've moved your sites and you don't mind a few problems before running the dist-upgrade just in case.
TroN-0074I haven't done a distribution upgrade myself as I moved to Testing then Sid not long after moving to Debian. As far as I can tell an update by changing sources.list is possible -- I think caravel posted a link to some instructions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.