LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   udev isn't configured correctly, stops initramfs-tools from being updated (https://www.linuxquestions.org/questions/debian-26/udev-isn%27t-configured-correctly-stops-initramfs-tools-from-being-updated-587440/)

xaos5 09-26-2007 04:38 AM

udev isn't configured correctly, stops initramfs-tools from being updated
 
here is the error:
Code:

# apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up udev (0.114-2) ...
dpkg: error processing udev (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of initramfs-tools:
 initramfs-tools depends on udev (>= 0.086-1); however:
  Package udev is not configured yet.
dpkg: error processing initramfs-tools (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 udev
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is what I've tryed:
Code:

# bash -x /var/lib/dpkg/info/udev.postinst configure notfirst
+ case "$1" in
+ '[' -z notfirst ']'
+ '[' -e /etc/udev/run-write_net_rules ']'
+ chrooted
++ stat -c %d/%i /
++ stat -Lc %d/%i /proc/1/root
+ '[' 2049/2 = 2049/2 ']'
+ return 1
+ '[' -e /etc/udev/kernel-upgrade ']'
+ can_start_udevd
+ supported_kernel
+ case "$(uname -r)" in
++ uname -r
+ return 0
+ '[' '!' -d /sys/class/ ']'
+ '[' '!' -e /proc/sys/kernel/hotplug ']'
+ grep -q '[[:space:]]tmpfs$' /proc/filesystems
+ '[' -e /etc/udev/disabled ']'
+ return 0
+ restart_udevd
+ start-stop-daemon --stop --name udevd --oknodo --quiet --retry 5
+ local rc=0
+ udevd --daemon
+ '[' 0 -ne 0 ']'
+ update_initramfs
+ '[' -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ']'+ update-initramfs -u
+ '[' -x /etc/init.d/udev ']'
+ update-rc.d udev start 03 S .
+ '[' -x /etc/init.d/udev-mtab ']'
+ update-rc.d udev-mtab start 36 S .

# echo $?
0

I rebooted already, it seems this is a false error in the scripts with dpkg?

I did find this on the net http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388374

dhruvypatel 09-28-2007 02:08 AM

Try force fully installing udev. udev package should be there at /var/cache/apt/archive. If it's not there download it and install it force fully.
Quote:

dpkg -i --force-all /var/cache/apt/archive/udev....
If udev successfully installed then you can try

Quote:

apt-get install initramfs-tools

xaos5 09-30-2007 08:39 PM

Code:

# ls /var/cache/apt/archives/udev*
/var/cache/apt/archives/udev_0.114-2_i386.deb

# dpkg -i --force-all /var/cache/apt/archives/udev_0.114-2_i386.deb
(Reading database ... 49217 files and directories currently installed.)
Preparing to replace udev 0.114-2 (using .../archives/udev_0.114-2_i386.deb) ...
Unpacking replacement udev ...
Setting up udev (0.114-2) ...
update-initramfs: Generating /boot/initrd.img-2.6.21-2-486

# apt-get install initramfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
initramfs-tools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up initramfs-tools (0.90a) ...
Installing new version of config file /etc/initramfs-tools/update-initramfs.conf ...
update-initramfs: Generating /boot/initrd.img-2.6.21-2-486

# apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Cool it worked, what could have possibly caused this error?


All times are GMT -5. The time now is 10:34 PM.