LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-21-2003, 12:46 PM   #1
seppe
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:
Code:
dpkg: error processing gnome-session2 (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 gnome-session2
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, 11:41 AM   #2
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
From http://bugs.debian.org/cgi-bin/pkgre...gnome-session2

Quote:
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, 10:10 AM   #3
Sindre
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, 02:04 PM   #4
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
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, 07:20 PM   #5
meldroc
Member
 
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, 04:50 PM   #6
rjliebenberg
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.

Thanks.

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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
Open Source Consulting | Domain Registration