LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to upgrade squeeze to wheezy (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-upgrade-squeeze-to-wheezy-4175543935/)

seog 05-29-2015 05:10 AM

unable to upgrade squeeze to wheezy
 
I try to upgrade the disto currently running in my box:

Description: Debian GNU/Linux 6.0 (squeeze)
Release: 6.0
Codename: squeeze

My sources.list looks like following:

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ wheezy-updates main
deb-src http://mirrors.kernel.org/debian/ wheezy-updates main

After 2 commands:

aptitude update
aptitude upgrade

I have the same old good squeeze.
Help, please

yours`
sehrguey

TobiSGD 05-29-2015 05:19 AM

You have specified the volatile and security servers in your sources.list, but there is no entry for the main repository servers. This way your system can't upgrade.

Amarildo 05-29-2015 09:51 AM

More in depth to what TobiSDG wanted to say:

You only specified the "security fixes repository" and you must specify the entire Wheezy repository, such as:

Code:

deb http://ftp.nl.debian.org/debian stable main
deb-src http://ftp.nl.debian.org/debian stable main

deb http://ftp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.debian.org/debian/ wheezy-updates main


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

If you live in the US:

Code:

deb http://ftp.us.debian.org/debian stable main
deb-src http://ftp.us.debian.org/debian stable main

deb http://ftp.debian.org/debian/ wheezy-updates main
deb-src http://ftp.debian.org/debian/ wheezy-updates main

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

However, you do know that Wheezy is the old-Stable, right? So after you upgrade to Wheezy you could consider upgrading to Jessie, the current Stable. I'm not sure you can upgrade from Squeeze to Jessie.

seog 05-29-2015 11:59 AM

thank you for your swift and clear responses,

I followed your directions, aptitude did its job (update && upgrade), I rebooted and was presented with black-and-white console to login - no graphical interface.
So now I have only a terminal and 'lsb_release -a' reports I am still on Squeeze.
:(
yours`
sehrguey

Amarildo 05-29-2015 02:00 PM

Did you upgrade via graphical environment?

seog 05-29-2015 11:48 PM

no, dear Amarildo
I did it through terminal commands and tried to do it again from the present console.
Then APT reported there were over one hundred conflicts in dependencies, made me several times to type "I am aware that this is a very bad idea" (when I insisted to proceed anyway) and the result was a predictable screwed up mess.
So I give up on fixing the issue and will do a fresh installation (got too much work and unfulfilled obligations amassed in the last couple of days you know).
Thank you for your kind participation.

yours`
sehrguey

Head_on_a_Stick 05-30-2015 06:30 AM

Quote:

Originally Posted by seog (Post 5369677)
Then APT reported there were over one hundred conflicts in dependencies, made me several times to type "I am aware that this is a very bad idea" (when I insisted to proceed anyway) and the result was a predictable screwed up mess.

That's because you used `aptitude` -- it's gets confused by all the dependency resolution options.

The official advice is to use:
Code:

# apt-get dist-upgrade
https://bugs.debian.org/cgi-bin/bugr...cgi?bug=411280

EDIT: @joe 2000 is completely correct -- Stable now means jessie, that sources.list will break your system (see my signature).

joe_2000 05-30-2015 10:57 AM

This entry is dangerous:
Quote:

Originally Posted by Amarildo (Post 5369376)

Code:

deb http://ftp.nl.debian.org/debian stable main
deb-src http://ftp.nl.debian.org/debian stable main


Better use


Code:

deb http://ftp.nl.debian.org/debian wheezy main
deb-src http://ftp.nl.debian.org/debian wheezy main

I.e. specify the actual release rather than stable. Otherwise you might inadvertedly upgrade when really you only wanted to update the system. In fact this might very well be the reason why your uprade failed... you went straight from Squeeze to Jessie, because Jessie is the current stable.

Amarildo 05-30-2015 12:57 PM

Quote:

Originally Posted by joe_2000 (Post 5369826)
This entry is dangerous:


Better use


Code:

deb http://ftp.nl.debian.org/debian wheezy main
deb-src http://ftp.nl.debian.org/debian wheezy main

I.e. specify the actual release rather than stable. Otherwise you might inadvertedly upgrade when really you only wanted to update the system. In fact this might very well be the reason why your uprade failed... you went straight from Squeeze to Jessie, because Jessie is the current stable.

Oh yes, sorry. I don't know how I didn't pick up on that.

OP, Joe is right, it's way better to use the release name rather than it's release name. However, Wheezy isn't the Stable branch anymore, it's OldStable. The current Stable release is Jessie.

seog 05-31-2015 11:48 PM

dear all,

thank you really, your advises made me wiser (for a time being) and now I have
Code:

/home/sehrguey/Downloads# lsb_release -a
No LSB modules are available.
Distributor ID:        Debian
Description:        Debian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:        jessie

wow!

yours`
sehrguey


All times are GMT -5. The time now is 02:47 PM.