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

Notices


Reply
  Search this Thread
Old 09-26-2007, 04:38 AM   #1
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
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

Last edited by xaos5; 09-26-2007 at 04:48 AM.
 
Old 09-28-2007, 02:08 AM   #2
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Rep: Reputation: 15
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
 
Old 09-30-2007, 08:39 PM   #3
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Original Poster
Rep: Reputation: 31
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?
 
  


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
PHP 5 + Apache not configured correctly. Clean3d Linux - Server 1 09-24-2007 11:06 AM
initrd-tools or initramfs-tools kushalkoolwal Debian 9 12-28-2006 09:11 PM
install new kernel problem with initramfs-tools arsham Linux - General 1 10-04-2006 02:53 PM
Conflict in Upgrading initramfs-tools and udev Brian Puccio Linux - Software 2 03-12-2006 01:46 PM
/dev/lp0 not configured correctly? walterbyrd Debian 1 05-17-2004 03:02 PM

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

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