Reply
Thread Tools
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#1
I have a dependency problem. One package (sysvinit) depends on another (mini-rc) being configured. Usually, installing in two steps would be enough, but since I'm aiming to do a SSU, I need both installed in one go. If I install both with "dpkg -i mini-rc...deb sysvinit...deb", sysvinit will complain about dependencies and won't install.
Code:
/media/mmc1/dt # dpkg -i *.deb
(Reading database ... 18370 files and directories currently installed.)
...
Preparing to replace mini-rc 0.2.11 (using mini-rc_0.2.11-1_all.deb) ...
Unpacking replacement mini-rc ...
...
dpkg: regarding sysvinit_2.85-22.osso15-dt1_armel.deb containing sysvinit, pre-dependency problem:
sysvinit pre-depends on sysv-rc (>= 2.85-2) | file-rc (>> 0.7.0) | boot-mechanism
mini-rc provides boot-mechanism but is unpacked but not configured.
dpkg: error processing sysvinit_2.85-22.osso15-dt1_armel.deb (--install):
pre-dependency problem - not installing sysvinit
...
Setting up mini-rc (0.2.11-1) ...
Installing new version of config file /etc/init.d/minireboot ...
Installing new version of config file /etc/init.d/minishutdown ...
...
Errors were encountered while processing:
sysvinit_2.85-22.osso15-dt1_armel.deb
/media/mmc1/dt #
How can I solve this?
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#2
Perhaps I'm being thick, but isn't that what apt is for?
 
Posts: 21 | Thanked: 42 times | Joined on Jan 2010
#3
SSU is normally done with apt, not dpkg directly... apt would be smart enough to call dpkg in multiple steps here. A pre-dependency, as opposed to a regular dependency, is a very strong constraint (and seldomly used), and dpkg has no code to change the order in which packages are unpacked - that happens in the order given on the command line... it's up to the frontends, like apt, to handle such restrictions on when unpacking is allowed, either by giving the debs in the correct order on the command line, or calling it multiple times.
 

The Following 2 Users Say Thank You to ovekaaven For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 03:47.