Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 18, 2009 11:40 am 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Hi all,

I've attempted to do a dist-upgrade but I get the following:

Quote:
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be REMOVED:
apt apt-utils aptitude base-config cmake dselect fam gcc gcc-4.1 gettext-base groff-base
libfam0 libsasl2 libsigc++-1.2-5c102 libsigc++-2.0-0c2a libssp0 libstdc++6 lighttpd
man-db nmap python-apt tasksel tasksel-data telnet
The following NEW packages will be installed:
bind9utils libbind9-40 libcap2 libclamav5 libcurl3-gnutls libdb4.5 libdns45 libfsplib0
libgpm2 libisc45 libisccc40 libisccfg40 liblwres40 libpq5 libruby1.8 libtimedate-perl
libxcb-xlib0 libxcb1 lsb-release lynx-cur openssl-blacklist python2.5 python2.5-minimal
ttf-dejavu-core ttf-dejavu-extra
The following packages have been kept back:
clamav-freshclam cpp-4.1 dpkg dpkg-dev elinks gcc-4.1-base libcurses-perl libgcc1
liblocale-gettext-perl libperl5.8 libterm-readkey-perl libtext-charwidth-perl
libtext-iconv-perl perl perl-base perl-modules python-support
The following packages will be upgraded:
bind9 dovecot-common dovecot-imapd dovecot-pop3d libsasl2-2 libx11-6 linux-libc-dev lynx
pdmenu python python-minimal python2.4 python2.4-minimal ssl-cert ttf-dejavu
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt libstdc++6 (due to apt)
15 upgraded, 25 newly installed, 24 to remove and 17 not upgraded.
Need to get 30.2MB of archives.
After unpacking 836kB of additional disk space will be used.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'


What should I do? If I choose yes, will it really damage something? Scary!


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 11:52 am 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
Yes, you will damage your system.

Please tell us what distribution you are running, and post the contents of /etc/apt/sources.list.


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 1:47 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Thanks for responding..

Quote:
cat /etc/debian_version
5.0.1



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

deb http://security.debian.org/ stable/updates main

deb http://security.debian.org/ etch/updates main contrib


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 3:44 pm 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
Have you tried aptitude instead? I believe it has a different dependecy solver, so it may give you a more sensible way of upgrading ...

Edit: also, make your sources.list consistent - either include contrib in all lines or not at all


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 5:15 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
Are you upgrading from etch to lenny? ie, why are you doing a dist-upgrade?


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 8:02 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
saman007uk wrote:
Have you tried aptitude instead? ...

Edit: also, make your sources.list consistent - either include contrib in all lines or not at all


Yes but I've no idea what I'm doing in aptitude. I changed the sources.list to include contrib and updated.

Quote:
Are you upgrading from etch to lenny? ie, why are you doing a dist-upgrade?


That was the idea etch->lenny ..

Now it's more than that, though. How did everything get so screwed up?

I wonder if I should just leave well enough alone? Or start all over with a fresh install of the latest Debian?


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 8:06 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
Remove the etch line and do an apt-get update. Have you read the upgrading notes?

If it still fails, do try aptitude instead of apt-get (there's no place to be confused, they take the same arguments).


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 8:09 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
I haven't read the upgrading notes.. Where can I find them?


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 8:16 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
This does look a little "safer", right?

aptitude dist-upgrade
Quote:
The following packages are BROKEN:
gcc-4.3 libgcc1 libgomp1 libperl5.8 libsasl2 libssp0 libstdc++6
The following NEW packages will be automatically installed:
bind9utils elinks-data libbind9-40 libc6-dev libcap2 libclamav5 libcurl3-gnutls
libcwidget3 libdb4.5 libdns45 libept0 libfsplib0 libgpm2 libisc45 libisccc40
libisccfg40 liblwres40 libperl5.10 libpq5 libruby1.8 libtimedate-perl libxapian15
libxcb-xlib0 libxcb1 libxmlrpc-c3 lsb-release lynx-cur lzma openssl-blacklist
python2.5 python2.5-minimal ttf-dejavu-core ttf-dejavu-extra
The following packages will be automatically REMOVED:
libclamav2
The following NEW packages will be installed:
bind9utils elinks-data libbind9-40 libc6-dev libcap2 libclamav5 libcurl3-gnutls
libcwidget3 libdb4.5 libdns45 libept0 libfsplib0 libgpm2 libisc45 libisccc40
libisccfg40 liblwres40 libperl5.10 libpq5 libruby1.8 libtimedate-perl libxapian15
libxcb-xlib0 libxcb1 libxmlrpc-c3 lsb-release lynx-cur lzma openssl-blacklist
python2.5 python2.5-minimal ttf-dejavu-core ttf-dejavu-extra
The following packages will be REMOVED:
libclamav2
The following packages will be upgraded:
apt apt-utils aptitude bind9 clamav-freshclam cmake cpp-4.1 dovecot-common
dovecot-imapd dovecot-pop3d dpkg dpkg-dev elinks gcc gcc-4.1 gcc-4.1-base
libcurses-perl liblocale-gettext-perl libsasl2-2 libterm-readkey-perl
libtext-charwidth-perl libtext-iconv-perl libx11-6 lynx nmap pdmenu perl perl-base
perl-modules python python-apt python-minimal python-support python2.4
python2.4-minimal ssl-cert ttf-dejavu
The following packages are RECOMMENDED but will NOT be installed:
aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr aptitude-doc-ja
build-essential libparse-debianchangelog-perl libsasl2-modules
40 packages upgraded, 35 newly installed, 1 to remove and 0 not upgraded.
Need to get 69.0MB of archives. After unpacking 78.0MB will be used.
The following packages have unmet dependencies:
libstdc++6: Depends: gcc-4.3-base (= 4.3.2-1.1) but 4.3.3-3 is installed.
libsasl2: Depends: libsasl2-2 (= 2.1.22.dfsg1-8) but 2.1.22.dfsg1-23+lenny1 is to be installed.
libperl5.8: Depends: perl-base (= 5.8.8-11.1+lenny1) but 5.10.0-19 is to be installed.
libgomp1: Depends: gcc-4.3-base (= 4.3.2-1.1) but 4.3.3-3 is installed.
gcc-4.3: Depends: gcc-4.3-base (= 4.3.2-1.1) but 4.3.3-3 is installed.
Depends: cpp-4.3 (= 4.3.2-1.1) but 4.3.3-3 is installed.
libssp0: Depends: gcc-4.1-base (= 4.1.1-21) but 4.1.2-25 is to be installed.
libgcc1: Depends: gcc-4.3-base (= 4.3.2-1.1) but 4.3.3-3 is installed.
Resolving dependencies...
The following actions will resolve these dependencies:

Remove the following packages:
libperl5.8

Keep the following packages at their current version:
cpp-4.1 [4.1.1-21 (now)]
gcc-4.1 [4.1.1-21 (now)]
gcc-4.1-base [4.1.1-21 (now)]
libsasl2-2 [2.1.22.dfsg1-8 (now)]

Downgrade the following packages:
cpp-4.3 [4.3.3-3 (now) -> 4.3.2-1.1 (stable)]
gcc-4.3-base [4.3.3-3 (now) -> 4.3.2-1.1 (stable)]

Leave the following dependencies unresolved:
dpkg-dev recommends build-essential
Score is -874


Top
   
 Post subject:
PostPosted: Thu Jun 18, 2009 9:28 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
http://www.debian.org/releases/lenny/i3 ... ading.html

always good to read the documentation, no?

How did you get packages from Squeeze? cpp-4.3.3-3 is not in lenny but was in Squeeze as of 02/16.

Yes, that looks safer. The "dependency that will not be resolved" is just a Recommendation - aptitude installs packages that are merely Recommended by default. You can sort out build-essential later. Removing libperl5.8 is fine since Lenny ships with perl 5.10, not 5.8. And I assume libclamav5 replaces libclamav2.


One of the first things noted in the release notes is that you should upgrade apt first. Perhaps the first thing you should do now is apt-get install apt aptitude .


Top
   
 Post subject:
PostPosted: Fri Jun 19, 2009 9:21 am 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Alucard wrote:
http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.html

always good to read the documentation, no?


Yes. Thank you.

Alucard wrote:
How did you get packages from Squeeze? cpp-4.3.3-3 is not in lenny but was in Squeeze as of 02/16.


I have no idea.. It's been a while since I've done any real OS operations on my node. I just don't remember what I've done :-)

Alucard wrote:
One of the first things noted in the release notes is that you should upgrade apt first. Perhaps the first thing you should do now is apt-get install apt aptitude .

[/quote]

I can't. It says I'm missing all kinds of dependencies.

I'm backing up all my stuff right now and then I'll just try dist-upgrade from aptitude. If that fails, I'll just start all over and install lenny from my linode manager.


Thanks for everybody's help!


Top
   
 Post subject:
PostPosted: Fri Jun 19, 2009 11:10 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
You can also try safe-upgrade.


Top
   
 Post subject:
PostPosted: Fri Jun 19, 2009 12:18 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
safe-upgrade is the same as upgrade. It will upgrade everything that does not require new packages to be installed or other packages to be removed. To complete the upgrade to Lenny you could start with a safe-upgrade but must do at least one (and probably several) dist-upgrades.

Can you post what it says about apt-get install apt aptitude ?


Top
   
 Post subject:
PostPosted: Fri Jun 19, 2009 8:33 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Hi,

I just did aptitude dist-upgrade and all is well. I actually had to do it twice because some were apparently held back.

All is well now.. I appreciate all your help!!

Thanks


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group