Here is the full output of the code that you gave me.
Code:
ubuntu@ubuntu:~$ sudo cp /etc/resolv.conf /mnt/etc
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
Adding `local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@ubuntu:/# ln -s /bin/true /sbin/initctl
root@ubuntu:/# apt-get update
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://us.archive.ubuntu.com karmic Release.gpg
Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
Hit http://archive.canonical.com karmic Release
Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Hit http://security.ubuntu.com karmic-security/main Packages
Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Hit http://us.archive.ubuntu.com karmic Release
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://us.archive.ubuntu.com karmic-backports Release
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://archive.canonical.com karmic/partner Sources
Hit http://us.archive.ubuntu.com karmic-proposed Release
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/main Sources
Hit http://us.archive.ubuntu.com karmic/restricted Sources
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/universe Sources
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://us.archive.ubuntu.com karmic-updates/main Sources
Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-backports/main Packages
Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
Reading package lists... Done
root@ubuntu:/# apt-get purge grub-pc grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-common* grub-pc* startupmanager*
0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
After this operation, 5,333kB disk space will be freed.
Do you want to continue [Y/n]? y
Abort.
root@ubuntu:/# sudo mount /dev/sda2 /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind /$i /mnt/$i;done
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
sudo: unable to resolve host ubuntu
cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
root@ubuntu:/# sudo chroot /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@ubuntu:/# ln -s /bin/true /sbin/initctl
ln: creating symbolic link `/sbin/initctl': File exists
root@ubuntu:/# apt-get update
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://us.archive.ubuntu.com karmic Release.gpg
Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
Hit http://archive.canonical.com karmic Release
Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Hit http://security.ubuntu.com karmic-security/main Packages
Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://archive.canonical.com karmic/partner Sources
Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
Hit http://us.archive.ubuntu.com karmic Release
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://us.archive.ubuntu.com karmic-backports Release
Hit http://us.archive.ubuntu.com karmic-proposed Release
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/main Sources
Hit http://us.archive.ubuntu.com karmic/restricted Sources
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/universe Sources
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://us.archive.ubuntu.com karmic-updates/main Sources
Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-backports/main Packages
Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
Reading package lists... Done
root@ubuntu:/# apt-get purge grub-pc grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-common* grub-pc* startupmanager*
0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
After this operation, 5,333kB disk space will be freed.
Do you want to continue [Y/n]?
Abort.
root@ubuntu:/# sudo mount /dev/sda2 /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind /$i /mnt/$i;done
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
sudo: unable to resolve host ubuntu
cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
root@ubuntu:/# sudo chroot /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@ubuntu:/# ln -s /bin/true /sbin/initctl
ln: creating symbolic link `/sbin/initctl': File exists
root@ubuntu:/# apt-get update
Hit http://us.archive.ubuntu.com karmic Release.gpg
Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://archive.canonical.com karmic Release
Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
Hit http://archive.canonical.com karmic/partner Sources
Hit http://us.archive.ubuntu.com karmic Release
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://us.archive.ubuntu.com karmic-backports Release
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-proposed Release
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/main Sources
Hit http://us.archive.ubuntu.com karmic/restricted Sources
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/universe Sources
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://us.archive.ubuntu.com karmic-updates/main Sources
Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-backports/main Packages
Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
Reading package lists... Done
root@ubuntu:/# apt-get purge grub-pc grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-common* grub-pc* startupmanager*
0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
After this operation, 5,333kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
root@ubuntu:/# sudo mount /dev/sda2 /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind /$i /mnt/$i;done
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
sudo: unable to resolve host ubuntu
cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
root@ubuntu:/# sudo chroot /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@ubuntu:/# ln -s /bin/true /sbin/initctl
ln: creating symbolic link `/sbin/initctl': File exists
root@ubuntu:/# apt-get update
Hit http://us.archive.ubuntu.com karmic Release.gpg
Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
Hit http://security.ubuntu.com karmic-security Release.gpg
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://archive.canonical.com karmic Release
Hit http://security.ubuntu.com karmic-security Release
Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://us.archive.ubuntu.com karmic Release
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://us.archive.ubuntu.com karmic-backports Release
Hit http://us.archive.ubuntu.com karmic-proposed Release
Hit http://archive.canonical.com karmic/partner Sources
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/main Sources
Hit http://us.archive.ubuntu.com karmic/restricted Sources
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/universe Sources
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://us.archive.ubuntu.com karmic-updates/main Sources
Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-backports/main Packages
Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
Reading package lists... Done
root@ubuntu:/# apt-get purge grub-pc grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-common* grub-pc* startupmanager*
0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
After this operation, 5,333kB disk space will be freed.
Do you want to continue [Y/n]? Y
Abort.
root@ubuntu:/# sudo mount /dev/sda2 /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# for i in dev proc sys dev/pts; do sudo mount --bind /$i /mnt/$i;done
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
root@ubuntu:/# sudo cp /etc/resolv.conf /mnt/etc
sudo: unable to resolve host ubuntu
cp: `/etc/resolv.conf' and `/mnt/etc/resolv.conf' are the same file
root@ubuntu:/# sudo chroot /mnt
sudo: unable to resolve host ubuntu
root@ubuntu:/# dpkg-divert --local --rename --add /sbin/initctl
Leaving `local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@ubuntu:/# ln -s /bin/true /sbin/initctl
ln: creating symbolic link `/sbin/initctl': File exists
root@ubuntu:/# apt-get update
Hit http://archive.canonical.com karmic Release.gpg
Ign http://archive.canonical.com karmic/partner Translation-en_US
Hit http://us.archive.ubuntu.com karmic Release.gpg
Ign http://us.archive.ubuntu.com karmic/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic/restricted Translation-en_US
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Hit http://archive.canonical.com karmic Release
Ign http://us.archive.ubuntu.com karmic/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Ign http://us.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://us.archive.ubuntu.com karmic-backports Release.gpg
Ign http://us.archive.ubuntu.com karmic-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-backports/universe Translation-en_US
Hit http://archive.canonical.com karmic/partner Packages
Ign http://us.archive.ubuntu.com karmic-backports/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com karmic-proposed Release.gpg
Ign http://us.archive.ubuntu.com karmic-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/main Translation-en_US
Hit http://security.ubuntu.com karmic-security/main Packages
Ign http://us.archive.ubuntu.com karmic-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com karmic-proposed/universe Translation-en_US
Hit http://archive.canonical.com karmic/partner Sources
Hit http://us.archive.ubuntu.com karmic Release
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://us.archive.ubuntu.com karmic-backports Release
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://us.archive.ubuntu.com karmic-proposed Release
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/main Sources
Hit http://us.archive.ubuntu.com karmic/restricted Sources
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/universe Sources
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://us.archive.ubuntu.com karmic-updates/main Sources
Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-backports/main Packages
Hit http://us.archive.ubuntu.com karmic-backports/restricted Packages
Hit http://us.archive.ubuntu.com karmic-backports/universe Packages
Hit http://us.archive.ubuntu.com karmic-backports/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/restricted Packages
Hit http://us.archive.ubuntu.com karmic-proposed/main Packages
Hit http://us.archive.ubuntu.com karmic-proposed/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-proposed/universe Packages
Reading package lists... Done
root@ubuntu:/# apt-get purge grub-pc grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-common* grub-pc* startupmanager*
0 upgraded, 0 newly installed, 3 to remove and 208 not upgraded.
After this operation, 5,333kB disk space will be freed.
Do you want to continue [Y/n]? Y
Abort.
root@ubuntu:/# apt-get install grub grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
grub-common is already the newest version.
Suggested packages:
grub-doc mdadm
The following packages will be REMOVED:
grub-pc
The following NEW packages will be installed:
grub
0 upgraded, 1 newly installed, 1 to remove and 208 not upgraded.
Need to get 903kB of archives.
After this operation, 188kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Abort.
root@ubuntu:/# grub-install --recheck /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found Debian background: Lake_mapourika_NZ.tga
Found linux image: /boot/vmlinuz-2.6.31-15-generic
Found initrd image: /boot/initrd.img-2.6.31-15-generic
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
done
root@ubuntu:/# rm /sbin/initctl
root@ubuntu:/# dpkg-divert --local --rename --remove /sbin/initctl
Removing `local diversion of /sbin/initctl to /sbin/initctl.distrib'
root@ubuntu:/# exit
exit
root@ubuntu:/# for i in dev/pts dev proc sys /; do sudo umount /mnt/$i;done
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
sudo: unable to resolve host ubuntu
root@ubuntu:/#
Bookmarks