Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 09-21-2003, 11:46 AM   #1
LQ Newbie
Registered: Jun 2003
Posts: 19

Rep: Reputation: 0
dist-upgrade failed! HELP!

Hi all,

I installed Libranet (a nice Debian clone) this morning. I changed 'Woody' to 'Sid' in /etc/apt/sources.list. After that, I did a 'apt-get update' and 'apt-get dist-upgrade'.

Everything went fine, but suddenly I got this ugly error:
dpkg: error processing gnome-session2 (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
VERY annoying! Because my dependencies are broken now, and my distro isn't updated yet. I tried everything (apt-get remove gnome-session2, apt-get update gnome-session2, dpkg --remove gnome-session2, dpkg --force-all --remove gnome-session2, apt-get install -f, ..) but nothing worked!

Please please please, anyone, how can I fix this and continue my distro upgrade?!

Thanks in advance!
Old 09-25-2003, 10:41 AM   #2
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31

Debian Bug report logs: package gnome-session2

There is no record of the gnome-session2 package, and no bugs have been filed against it.
So, um, where did you get this gnome-session2 package? It doesn't seem to have ever been in the official Debian distribution. (and as such, it's your fault )
Old 09-27-2003, 09:10 AM   #3
LQ Newbie
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
try to use dselect instead of apt, that will fix most such broken packages
Old 09-27-2003, 01:04 PM   #4
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Originally posted by Sindre
try to use dselect instead of apt, that will fix most such broken packages
dselect bad, aptitude good
Old 09-27-2003, 06:20 PM   #5
Registered: Aug 2003
Posts: 102

Rep: Reputation: 15
In these sorts of emergencies, I've sometimes resorted to manually editing the offending package's scripts.

Try peeking at /var/lib/dpkg/info/gnome-session2.prerm

You can fix or comment out the offending lines of code, which will allow the package removal (and the rest of your update) to proceed.

One thing that might be helpful in figuring out what's going on in the script is to edit /etc/apt/apt.conf.d/70debconf, and adding the line

DPkg::Options {"-D3";}

to the file. That will turn on debugging output, and may tell you what's broken.
Old 11-05-2003, 03:50 PM   #6
LQ Newbie
Registered: Jul 2003
Location: Los Angeles
Distribution: CentOS
Posts: 14

Rep: Reputation: 0
Thumbs up

I was having this exact problem upgrading to "testing" from the Libranet 2.7 classic.

In the /var/lib/dpkg/info/gnome-session2.prerm comment out the line that starts "--slave ..." and the line right below it.

Turns out the "--slave" parameter is false when used with the "--remove" parameter. I says this in the error output, but I wouldn't have know where to fix it.


Last edited by rjliebenberg; 11-05-2003 at 03:52 PM.


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
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 01:33 PM
no downloads after dist-upgrade ekdya Debian 7 10-05-2005 04:48 PM
Error trying to dist-upgrade or upgrade KDE prophet621 Linux - Newbie 0 09-10-2003 04:17 PM
dist-upgrade slinkyredfoot Debian 1 08-03-2003 07:25 PM
apt-get dist-upgrade Toasti Linux - Newbie 1 03-28-2003 06:50 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:03 PM.

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