LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-06-2004, 05:35 AM   #1
moby
Member
 
Registered: May 2004
Location: Austria
Posts: 30

Rep: Reputation: 15
apt-get Question ?


Hi
At the moment I'm running Opera as my main web browser, this is a really good browser and i don't want to change it however I'm creating a web page and I want to know how it looks in other browsers .
This has led me to a unexpected problem. I use the normal shell call for apt-get (i have also tryed the KPackage method with the same result ).
Code:
apt-get install mozilla
After reading the database it returns this error !!
it's trying and failing to replace joe the text editor even though i don't want it

Unpacking replacement joe ...
/var/lib/dpkg/info/joe.postrm: line 3: /usr/bin/update-menus: Permission denied
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: line 3: /usr/bin/update-menus: Permission denied
dpkg: error processing /var/cache/apt/archives/joe_3.1-0.1_i386.deb (--unpack):
subprocess new post-removal script returned error exit status 1
/var/lib/dpkg/tmp.ci/postrm: line 3: /usr/bin/update-menus: Permission denied
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/joe_3.1-0.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
myhome@foo~#

any help with this would be very welcome

Thanks Moby

PS: I'm doing this in root

If you can Read German have a look at this !
Follow the Section on the web !

Last edited by moby; 07-06-2004 at 05:57 AM.
 
Old 07-06-2004, 11:20 AM   #2
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Rep: Reputation: 30
Reading the dump you posted, it would seem apt-get is downloading and installing the wrong package altogether. Can you get other packages via apt-get with no problems? If yes, then I would recommend you let the apt-get people know that theres a bug, or a misnamed package someplace. (I don't use apt-get) Are you using the latest versions of apt-get and any programs it might depend on?
 
Old 07-06-2004, 11:33 AM   #3
miss crump
LQ Newbie
 
Registered: May 2004
Location: Oklahoma City, OK
Distribution: Debian
Posts: 17

Rep: Reputation: 0
It could be that apt-get had tried to update Joe at one time previously and couldn't complete it due to an error. This has happened to me. Apt-get continued to try to install the program every time I ran apt-get. Correcting the error fixed the problem.

Try opening the file /var/lib/dpkg/tmp.ci/postrm and commenting out the offending line (as root/su), which is line 3. It may be a whole block, if so, comment out the whole block. I've had to comment out the whole script before because it was trying to stop a daemon that I no longer had installed. After this, run apt-get again and it should finish removing the old Joe and then go about its normal business.
 
Old 07-06-2004, 01:55 PM   #4
Mn3moniC
LQ Newbie
 
Registered: Jul 2004
Location: Berlin, Germany
Distribution: debian unstable/testing
Posts: 6

Rep: Reputation: 0
hi,

try to install with synaptic an apt-get front-end ;-)
 
Old 07-07-2004, 12:19 PM   #5
moby
Member
 
Registered: May 2004
Location: Austria
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks one and all

1st I can not install any thing at the moment .

2nd The file /var/lib/dpkg/tmp.ci/postrm dosn't exist.

3rd This is the message i get after apt-get clear then apt-get -f install (clearing the /var/cache/apt/archives list. Fixing any broken dependencies)
apt-get install mozilla.
This is not the full Dump .

Errors were encountered while processing:
/var/cache/apt/archives/joe_3.1-0.1_i386.deb

Help !
 
Old 07-07-2004, 02:00 PM   #6
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
There is a bug in the joe package. Uninstall it from your system.
Code:
apt-get remove --purge joe
apt-get install mozilla
If you still want joe afterwards,
Code:
apt-get install joe
I think the bug happens when you try to upgrade the package. Doing a clean install works for me.
 
Old 07-07-2004, 02:26 PM   #7
moby
Member
 
Registered: May 2004
Location: Austria
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks again

I'v tryed this approach and it still did not remove

dpkg: error processing joe (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
joe
E: Sub-process /usr/bin/dpkg returned an error code (1)

I try to reinstall and i get the Dump from my lastpost.

Mody
 
Old 07-07-2004, 02:44 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Quote:
Originally posted by moby
Thanks again

I'v tryed this approach and it still did not remove

dpkg: error processing joe (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
joe
E: Sub-process /usr/bin/dpkg returned an error code (1)

I try to reinstall and i get the Dump from my lastpost.

Mody
Try dpkg -r --force-remove-reinstreq joe that should remove it.
 
Old 07-07-2004, 02:59 PM   #9
moby
Member
 
Registered: May 2004
Location: Austria
Posts: 30

Original Poster
Rep: Reputation: 15
ok i just used the --force
This is the return ,


Removing joe ...
/var/lib/dpkg/info/joe.postrm: line 3: /usr/bin/update-menus: Permission denied
dpkg: error processing joe (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
joe

Then the call whereis joe
joe : /etc/joe

I'v removed the binaries manualy then called ( dpkg -r --force-remove-reinstreq joe )

and i still get the above dump !!

man oh man !!
 
Old 07-07-2004, 03:27 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
Quote:
Originally posted by moby
ok i just used the --force
This is the return ,


Removing joe ...
/var/lib/dpkg/info/joe.postrm: line 3: /usr/bin/update-menus: Permission denied
dpkg: error processing joe (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
joe

Then the call whereis joe
joe : /etc/joe

I'v removed the binaries manualy then called ( dpkg -r --force-remove-reinstreq joe )

and i still get the above dump !!

man oh man !!
Well then I would say edit the file /var/lib/dpkg/info/joe.postrm and comment out the line/section that has the update-menus in it the try the command again. If it fails then try dpkg --get-selections > selections.txt then edit the selections.txt which is created in the current working directory and remove the line with joe in it. Then use dpkg --set-selections < selections.txt to set the new packages list back into the database and use dselect update to get the dpkg/apt databases back in sync with the new selections the maybe do a apt-get dselect-upgrade to update all your packages or just try to install some small package to verify apt/dpkg is working again.
 
Old 07-07-2004, 03:31 PM   #11
moby
Member
 
Registered: May 2004
Location: Austria
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks

Thank you one and all for your input and time

on reading and re reading my last post i saw the problem the file /usr/bin/update-menus had only r+w permission somehow therefore chmod a=xwr (only for the time being until i find out who need permission)

that was it thanks again

Moby !
 
Old 07-16-2004, 05:03 AM   #12
cdevos
LQ Newbie
 
Registered: Jul 2004
Location: Brussels, Belgium
Distribution: Debian
Posts: 2

Rep: Reputation: 0
Got the same stuff when upgrading my knoppix 3.3.

Thanks a lot.

Carl
 
Old 07-16-2004, 05:21 AM   #13
moby
Member
 
Registered: May 2004
Location: Austria
Posts: 30

Original Poster
Rep: Reputation: 15
Hi

I'v just upgraded to the 2.6 kernal with knoppix 3.4, one of the first things was to install Synaptic . this works a treat.

Moby.
 
Old 07-27-2004, 09:34 AM   #14
tomwitt
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
PHP5 installation... at long last!

(Not quite as off topic as it might seem)

I had exactly the same problem (attempting to remove joe, /usr/sbin/update-menus "permission denied") trying to install PHP5.

Thanks to the info on this thread, I finally successfully removed joe (edited /var/lib/dpkg/info/joe.postrm and commented out line 3)

Thanks!
 
  


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 -d question crispyleif Debian 6 11-17-2005 10:23 PM
a question about apt MaTrIx709 Debian 2 11-13-2005 10:27 AM
question about apt-get impakt Debian 3 05-29-2005 01:02 PM
Yet Another Apt-Get Question akk Linux - Newbie 1 03-28-2004 03:44 AM
question about apt shane25119 Linux - Software 3 02-19-2004 01:13 AM


All times are GMT -5. The time now is 10:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration