Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was told to run sudo dpkg --configure -a by ubuntu when I tried installing something with apt-get, it proceeded to try to install a new kernel but that failed. I'm perplexed as to why that happens as it seems to be complaining about /dev not being mounted, but it is (I mean I can access it). Any ideas of what to do? My installation of Ubuntu is on a USB stick, as I'm trying it out for the first time.

$ sudo dpkg --configure -a
Setting up linux-image-2.6.35-28-generic (2.6.35-28.50) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-28-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-28-generic /boot/vmlinuz-2.6.35-28-generic
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-28-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-28-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-image-2.6.35-22-generic (2.6.35-22.35) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-22-generic
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.35-22.33 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.35-22.33 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.35-22-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.35-22-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.35-28-generic; however:
  Package linux-image-2.6.35-28-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.35.28.36); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.35-28-generic
 linux-image-2.6.35-22-generic
 linux-image-g
eneric
 linux-generic

I do have /dev mounted if I do ls /dev I get this:

$ ls /dev
autofs         core             fd       input  loop6               oldmem   ram10  ram5    scd0  sg0       stdout  tty15  tty23  tty31  tty4   tty48  tty56  tty7     usb      v4l   vcsa         video0
block          cpu              full     kmsg   loop7               pktcdvd  ram11  ram6    sda   sg1       tty     tty16  tty24  tty32  tty40  tty49  tty57  tty8     usbmon0  vcs   vcsa1        zero
bsg            cpu_dma_latency  fuse     log    mapper              port     ram12  ram7    sda1  sg2       tty0    tty17  tty25  tty33  tty41  tty5   tty58  tty9     usbmon1  vcs1  vcsa2
btrfs-control  disk             fw0      loop0  mcelog              ppp      ram13  ram8    sda2  shm       tty1    tty18  tty26  tty34  tty42  tty50  tty59  ttyS0    usbmon2  vcs2  vcsa3
bus            dri              hidraw0  loop1  mem                 psaux    ram14  ram9    sda3  snapshot  tty10   tty19  tty27  tty35  tty43  tty51  tty6   ttyS1    usbmon3  vcs3  vcsa4
cdrom          dvd              hidraw1  loop2  net                 ptmx     ram15  random  sda4  snd       tty11   tty2   tty28  tty36  tty44  tty52  tty60  ttyS2    usbmon4  vcs4  vcsa5
cdrw           dvdrw            hidraw2  loop3  network_latency     pts      ram2   rfkill  sda5  sr0       tty12   tty20  tty29  tty37  tty45  tty53  tty61  ttyS3    usbmon5  vcs5  vcsa6
char           ecryptfs         hidraw3  loop4  network_throughput  ram0     ram3   rtc     sdb   stderr    tty13   tty21  tty3   tty38  tty46  tty54  tty62  uinput   usbmon6  vcs6  vcsa7
console        fb0              hpet     loop5  null                ram1     ram4   rtc0    sdb1  stdin     tty14   tty22  tty30  tty39  tty47  tty55  tty63  urandom  usbmon7  vcs7  vga_arbiter
share|improve this question

closed as too localized by fossfreedom Feb 18 '12 at 22:53

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Can you add the output of mount? –  qbi Apr 16 '11 at 21:01
    
This question has no information and activity for a very long time. I am closing it for now. If by any reason you think this question is still viable or useful in anyways or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reasons why you want it open. Regards –  fossfreedom Feb 18 '12 at 22:53

Browse other questions tagged or ask your own question.