I am using Ubuntu 14.04 on vmware. I can't login to Ubuntu.
i'm in a situation similar to the one described in this post ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell
I have tried the solution of the above post but on this command
update-initramfs -u
I get this error
depmod error could not open directory lib/modules/3.16.0-44-generic
ls /lib

Do you have any advice how this can be solved?
uname -r. If the output deviates from the kernel version in the error message, tryupdate-initramfs -uk $(uname -r)and then select the kernel with this version on the next boot. – s3lph Jan 11 '16 at 14:55uname -rin a chroot environment gives the kernel version of the chroot host... Fot what kernel versions do directories exist in/lib/modules? – s3lph Jan 11 '16 at 15:28apt-get install --reinstall linux-headers-3.16.0-44-generic– Andrea Corbellini Jan 11 '16 at 17:21could not resolve it.archive.ubuntu.com. Maybe a dns error? – Raiden Jan 12 '16 at 10:39/etc/resolv.confin the chroot matches the one of the host – Andrea Corbellini Jan 12 '16 at 10:59error writing resolv.conf no such file or directory. But withlsI can see the file in the directory – Raiden Jan 12 '16 at 11:58sudo nano /etc/resolv.conf– Raiden Jan 12 '16 at 13:36/etc/resolv.confis a symlink (a broken symlink in your case). Remove it before editing – Andrea Corbellini Jan 12 '16 at 13:51nameserver 8.8.8.8 nameserver 8.8.4.4. But I get the same error:could not resolve it.archive.ubuntu.com. What's wrong? – Raiden Jan 12 '16 at 15:33