LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   removing package with unmet dependencies in Sarge (https://www.linuxquestions.org/questions/debian-26/removing-package-with-unmet-dependencies-in-sarge-339026/)

killy9999 07-01-2005 07:33 AM

removing package with unmet dependencies in Sarge
 
I've done this very stupid thing in my Sarge :rolleyes: . I've installed bootsplash package from:
deb .bootsplash.de/files/debian unstable main
deb-src .bootsplash.de/files/debian unstable main
then installed some themes and then I decided to uninstall all themes and to install only the one I liked the most. But bootsplash depends on bootsplash-theme-newlinux... which I also removed. So I tried to install newlinux theme and debian-mist theme again, and now there's quite a problem:
1. bootsplash is "install ok half-configured"
2. bootsplash-theme-newlinux and bootsplash-theme-debian-mist are "purge ok installed"

bootsplash can't be reconfigured, removed or installed, theme packages also can't be removed. I get an error about unmet dependencies. I tried using dselect, KPackage, apt-get -f install, dpkg-reconfigure bootsplash, dpkg --purge bootsplash, dpkg --purge bootsplash-theme-debian-mist and all the time I get errors from pre-removal scripts. I also can't install anything, couse all the time I get sth like this:

Code:

< export DEBIAN_FRONTEND; apt-get install --yes 'libgd2' ;echo RESULT=$?
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  bootsplash-theme-debian-mist: Depends: bootsplash (>= 3.0.0) but it is not installable
  bootsplash-theme-newlinux: Depends: bootsplash (>= 3.0.0) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
RESULT=100

It seems as if the only way to fix this is to remove these packages manualy, but I don't know how.

EDIT: Ok, a little update. It seems that I can remove bootsplash (although it gives me errors), but I can't remove theme packages. When I try to install bootsplash again I get errors from pre-instalation and post-instalation scripts (error code: 10)

Xian 07-01-2005 05:57 PM

You should modify the prerm scripts located under /var/lib/dpkg/info bootsplash-theme-*.prerm and comment out the line with db_unregister. Do this for each installed theme if applicable. After that you should do an apt-get remove --purge ".*bootsplash.*" to remove all bootsplash related packages.

killy9999 07-02-2005 02:43 AM

Well OK, now I can remove bootsplash packages so they won't cause any conflicts, but after removing them I can't install them again on the system. When I try to do that I get:

<splash' 'bootsplash-theme-newlinux' ;echo RESULT=$?
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
kernel-patch-bootsplash
Recommended packages:
sysv-rc-bootsplash
The following NEW packages will be installed:
bootsplash bootsplash-theme-newlinux
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1094kB of archives.
After unpacking 2036kB of additional disk space will be used.

Setting up bootsplash-theme-newlinux (0.5-5) ...nfiguring packages ...
bootsplash failed to preconfigure, with exit status 10
Selecting previously deselected package bootsplash-theme-newlinux.
(Reading database ... 81951 files and directories currently installed.)
Unpacking bootsplash-theme-newlinux (from .../bootsplash-theme-newlinux_0.5-5_all.deb) ...
Selecting previously deselected package bootsplash.
Unpacking bootsplash (from .../bootsplash_3.1-11_i386.deb) ...

dpkg: error processing bootsplash-theme-newlinux (--configure):
subprocess post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of bootsplash:
bootsplash depends on bootsplash-theme-newlinux | bootsplash-theme; however:
Package bootsplash-theme-newlinux is not configured yet.
Package bootsplash-theme is not installed.
Package bootsplash-theme-debian3 which provides bootsplash-theme is not installed.
Package bootsplash-theme-debian2 which provides bootsplash-theme is not installed.
Package bootsplash-theme-newlinux which provides bootsplash-theme is not configured yet.
Package bootsplash-theme-debian-tux which provides bootsplash-theme is not installed.
Package bootsplash-theme-debian-sarge which provides bootsplash-theme is not installed.
Package bootsplash-theme-debian which provides bootsplash-theme is not installed.
Package bootsplash-theme-debian-tux-gnulinex which provides bootsplash-theme is not installed.
Package bootsplash-theme-debian-wave which provides bootsplash-theme is not installed.
dpkg: error processing bootsplash (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bootsplash-theme-newlinux
bootsplash
E: Sub-process /usr/bin/dpkg returned an error code (1)
RESULT=10

cleberadriani 07-27-2005 02:30 PM

tks for the tip Xian. This save my day!

hwouters 08-19-2005 04:28 PM

I have also the same problem as killy9000 to install the themes again.

Greetings Hendrik

JackieBrown 09-07-2005 09:49 PM

I have the same problem as the two other posters about reinstall bootsplashes again.

JackieBrown 09-08-2005 12:42 PM

Heres the solution.

Open a teminal and as root
Code:

rm /var/lib/dpkg/info/bootsplash*
Then edit these two files :
Code:

kwrite /var/cache/debconf/config.dat
and
Code:

kwrite /var/cache/debconf/templates.dat
Remove all entries related to bootsplash.

Now you can reinstall and everyhing will be right as rain.


All times are GMT -5. The time now is 09:24 PM.