LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-29-2015, 05:10 AM   #1
seog
Member
 
Registered: Jun 2012
Posts: 54

Rep: Reputation: Disabled
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
 
Old 05-29-2015, 05:19 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
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.
 
1 members found this post helpful.
Old 05-29-2015, 09:51 AM   #3
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 05-29-2015, 11:59 AM   #4
seog
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-29-2015, 02:00 PM   #5
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
Did you upgrade via graphical environment?
 
Old 05-29-2015, 11:48 PM   #6
seog
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-30-2015, 06:30 AM   #7
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by seog View Post
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).

Last edited by Head_on_a_Stick; 05-30-2015 at 11:01 AM.
 
Old 05-30-2015, 10:57 AM   #8
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 823

Rep: Reputation: 237Reputation: 237Reputation: 237
This entry is dangerous:
Quote:
Originally Posted by Amarildo View Post

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.

Last edited by joe_2000; 05-30-2015 at 10:57 AM. Reason: Fixed code tag
 
Old 05-30-2015, 12:57 PM   #9
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
Quote:
Originally Posted by joe_2000 View Post
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.
 
Old 05-31-2015, 11:48 PM   #10
seog
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Thumbs up

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to upgrade from squeeze to wheezy(testing) rupeshforu Debian 4 12-07-2012 04:05 AM
unable to upgrade from squeeze to wheezy(testing) rupeshforu Debian 1 12-06-2012 05:30 AM


All times are GMT -5. The time now is 08:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration