LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   debian testing apt install error (https://www.linuxquestions.org/questions/linux-software-2/debian-testing-apt-install-error-665449/)

poonippi 08-26-2008 03:29 AM

debian testing apt install error
 
Hi,

re: Linux <host-name> 2.6.25-2-686 #1 SMP Fri Jul 18 17:46:56 UTC 2008 i686 GNU/Linux -- Debian Testing

I'm having trouble with apt, trying to do anything really!:-

Code:

# dpkg -l | grep calendar
ii  webcalendar                            1.0.5-15                            PHP-Based multi-user calendar
# apt-get remove webcalendar
Reading package lists... Done
Building dependency tree     
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies.
  openhpid: Depends: libopenhpi2 (= 2.11.2-1) but 2.12.0-1 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
# apt-get -f install
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies...Done
The following extra packages will be installed:
  openhpid
The following packages will be upgraded:
  openhpid
1 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
31 not fully installed or removed.
Need to get 0B/121kB of archives.
After this operation, 49.2kB disk space will be freed.
Do you want to continue [Y/n]?
Selecting previously deselected package openhpid.
(Reading database ... 51553 files and directories currently installed.)
Preparing to replace openhpid 2.11.2-1 (using .../openhpid_2.12.0-1_i386.deb) ...
Stopping openhpid: /usr/sbin/invoke-rc.d: line 437: 10918 Terminated              "${INITDPREFIX}${INITSCRIPTID}" "${saction}" "$@"
invoke-rc.d: initscript openhpid, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 143
dpkg - trying script from the new package instead ...
Stopping openhpid: /usr/sbin/invoke-rc.d: line 437: 10946 Terminated              "${INITDPREFIX}${INITSCRIPTID}" "${saction}" "$@"
invoke-rc.d: initscript openhpid, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/openhpid_2.12.0-1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 143
Starting openhpid: success.
Errors were encountered while processing:
 /var/cache/apt/archives/openhpid_2.12.0-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


pinniped 08-26-2008 04:15 AM

Was the hpid running when that script was executed? If it was running, have you tried an update after stopping the daemon?

What happens if you ask to simulate removing that package?
apt-get remove openhpi -s

Does apt threaten to remove other software? If not, you can delete that software and then request an install again - that should get you the updated version and you shouldn't have problems with the previous version (because it was already removed).

If you still have problems, you may need to manually remove that software - a sometimes tricky thing to do without getting 'apt' too upset.

poonippi 08-26-2008 04:43 PM

[SOLVED] debian testing apt install error
 
Stopping the process before this install did nothing.

Here is this output of a simualtion:-

Code:

rufus-maximus:~# apt-get remove openhpid -s
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be REMOVED
  openhpid
0 upgraded, 0 newly installed, 1 to remove and 40 not upgraded.
31 not fully installed or removed.
Remv openhpid [2.11.2-1]
Conf libvolume-id0 (0.125-5 Debian:testing)
Conf udev (0.125-5 Debian:testing)
Conf x11-xserver-utils (7.3+4 Debian:testing)
Conf adduser (3.110 Debian:testing)
Conf iptables (1.4.1.1-2 Debian:testing)
Conf libncursesw5 (5.6+20080804-1 Debian:testing)
Conf libssl0.9.8 (0.9.8g-13 Debian:testing)
Conf nano (2.0.7-3 Debian:testing)
Conf libxml2 (2.6.32.dfsg-2+lenny1 Debian-Security:None/testing)
Conf liblwres40 (1:9.5.0.dfsg.P2-1 Debian:testing)
Conf perl (5.10.0-13 Debian:testing)
Conf perl-modules (5.10.0-13 Debian:testing)
Conf bzip2 (1.0.5-1 Debian:testing)
Conf libdbus-1-3 (1.2.1-3 Debian:testing)
Conf dbus (1.2.1-3 Debian:testing)
Conf dbus-x11 (1.2.1-3 Debian:testing)
Conf libklibc (1.5.12-2 Debian:testing)
Conf klibc-utils (1.5.12-2 Debian:testing)
Conf libcups2 (1.3.8-1 Debian:testing)
Conf libilmbase6 (1.0.1-2+nmu2 Debian:testing)
Conf libnss3-1d (3.12.0-5 Debian:testing)
Conf libopenhpi2 (2.12.0-1 Debian:testing)
Conf libperl5.10 (5.10.0-13 Debian:testing)
Conf openssl (0.9.8g-13 Debian:testing)
Conf python2.5-minimal (2.5.2-11 Debian:testing)
Conf python2.5 (2.5.2-11 Debian:testing)
Conf grub-common (1.96+20080724-8 Debian:testing)
Conf grub-pc (1.96+20080724-8 Debian:testing)
Conf grub2 (1.96+20080724-8 Debian:testing)
Conf postfix (2.5.4-1 Debian:testing)
Conf postfix-mysql (2.5.4-1 Debian:testing)

This is the output trying to remove openhpid:-

Code:

rufus-maximus:~# apt-get remove openhpid
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be REMOVED
  openhpid
0 upgraded, 0 newly installed, 1 to remove and 40 not upgraded.
31 not fully installed or removed.
After this operation, 446kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 51547 files and directories currently installed.)
Removing openhpid ...
Stopping openhpid: /usr/sbin/invoke-rc.d: line 437: 13025 Terminated              "${INITDPREFIX}${INITSCRIPTID}" "${saction}" "$@"
invoke-rc.d: initscript openhpid, action "stop" failed.
dpkg: error processing openhpid (--remove):
 subprocess pre-removal script returned error exit status 143
Starting openhpid: success.
Errors were encountered while processing:
 openhpid
E: Sub-process /usr/bin/dpkg returned an error code (1)

Nothing worked! Really annoying me now! Applied some brute force instead

Code:

# find / -name '*openhpid*' -exec rm -rf {} \;
I was then able to apt-get the rest of the upgrade.

Thanks for your contribution :)

Regards.


All times are GMT -5. The time now is 11:57 PM.