LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-10-2009, 01:35 AM   #1
Hystoriker
LQ Newbie
 
Registered: May 2009
Distribution: Kubuntu 9.04
Posts: 3

Rep: Reputation: 0
cannot remove two packages with apt-get


I have tried to install some packages among others gettext and comerr-dev. When I did, there were some problems in the configuration process and as a result i cannot use apt-get anymore, because it tries to configure the two programs first before installing or deinstalling any other programs.

I have already tried to
Code:
sudo apt-get install -f
but the process cannot be finished.

The output is
Code:
matthias@matthiasLinux:~$ sudo apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Lese Status-Informationen ein... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
2 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0B Plattenplatz zusätzlich benutzt.
Richte gettext ein (0.17-6ubuntu2) ...
install-info: No dir file specified; try --help for more information.
dpkg: Fehler beim Bearbeiten von gettext (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Richte comerr-dev ein (2.1-1.41.4-1ubuntu1) ...
install-info: No dir file specified; try --help for more information.
dpkg: Fehler beim Bearbeiten von comerr-dev (--configure):
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 gettext
 comerr-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sorry for the German, i have tried to translate it here: http://paste.ubuntu.com/168156/

Entering
Code:
dpkg --configure -a
doesn't return anything. But the problem remains.

Can anybody help?
 
Old 05-10-2009, 10:12 AM   #2
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218

Rep: Reputation: 46
Does 'apt-get check' tell you anything?

Does 'apt-get remove gettext' do anything? How about with an '-f' in it?

I would also try using a gui front end to unselect those packages and see if that works. I know this can be done with CLI, but I don't know how.
 
Old 05-11-2009, 07:02 AM   #3
Hystoriker
LQ Newbie
 
Registered: May 2009
Distribution: Kubuntu 9.04
Posts: 3

Original Poster
Rep: Reputation: 0
Thanx ajlewis2 for your suggestions, alas they do not solve the problem.
Quote:
Does 'apt-get check' tell you anything?
It does tell me nothing but that it reads the list of packages and sets the status information. There seems to be no problem.
Quote:
Does 'apt-get remove gettext' do anything? How about with an '-f' in it?
Both times it tries to remove the program, but it has problems:
Code:
install-info: No dir file specified; try --help for more information.
dpkg: error when working on gettext (--remove):
 Subprocess pre-removal script returned error code 1
install-info: No dir file specified; try --help for more information.
dpkg: error while cleaning-up
 Subprocess post-installation script returned error code 1
(my translation)
 
Old 05-11-2009, 09:14 AM   #4
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 218

Rep: Reputation: 46
I googled and found something about the postinst script that may be the problem. Here is the link I looked at: https://bugs.launchpad.net/ubuntu/+s...ux/+bug/289997

Look for gettext.postinst in /var/lib/dpkg/info

See if you have the directory that is the line for install-info. For example mine looks like this:
=================
#!/bin/sh
set -e
install-info --quiet --section "Development" "Development" \
--description="" /usr/share/info/gettext.info

if [ "$1" = "configure" ]; then
ldconfig
fi
=================

I do have /usr/share/info directory.
 
Old 05-11-2009, 01:05 PM   #5
Hystoriker
LQ Newbie
 
Registered: May 2009
Distribution: Kubuntu 9.04
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for your effort. I have decided to reinstall my whole system after trying many things that did not work out. I did not try your solution, though, thus it might have helped.

Thanks again!
 
  


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 upgrade stopped, how can I remove packages before continuing upgrade? [KIA]aze Linux - Newbie 4 05-31-2007 07:49 AM
LXer: Apt-get remove SUSE; apt-get install Etch LXer Syndicated Linux News 0 05-26-2007 07:46 PM
apt-get wants to remove need packages fastTalker Linux - Software 1 02-15-2006 07:04 PM
HELP with apt-getHow come when I tried to use apt-get to remove a package to regain redss Linux - Newbie 1 08-22-2004 11:59 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

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

All times are GMT -5. The time now is 02:57 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