
Originally Posted by
Barrucadu
If you mount all of your HDD partitions you can chroot in and reinstall the kernel (or any package) that way:
Code:
mkdir /mnt/root
mount /dev/sda2 /mnt/root
mount /dev/sda6 /mnt/root/boot
mount --bind /dev /mnt/root/dev
mount --bind /proc /mnt/root/proc
mount --bind /sys /mnt/root/sys
chroot /mnt/root
apt-get install [whatever]
Code:
root@ubuntu:/# apt-get install linux-image
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-tools-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-2.6.32-22-generic linux-image-generic
Suggested packages:
fdutils linux-doc-2.6.32 linux-source-2.6.32 linux-tools
The following NEW packages will be installed:
linux-image linux-image-2.6.32-22-generic linux-image-generic
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 30.9MB of archives.
After this operation, 97.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
linux-image-2.6.32-22-generic linux-image-generic linux-image
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-2.6.32-22-generic 2.6.32-22.36
Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main linux-image-2.6.32-22-generic 2.6.32-22.36
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main linux-image-generic 2.6.32.22.23
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://security.ubuntu.com/ubuntu/ lucid-security/main linux-image 2.6.32.22.23
Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-2.6.32-22-generic_2.6.32-22.36_i386.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-image-generic_2.6.32.22.23_i386.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-image_2.6.32.22.23_i386.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@ubuntu:/#
Bookmarks