How to Fix broken Ubuntu Feisty Fawn
Sponsored Link
Boot up with a live cd, or ubuntu CD from a different partition.
Mount your feisty drive somewhere in this example i am mounting on /media/feisty
Create a directiory when do you want to mount
sudo mkdir /media/feisty
Mount your drive using the following command
sudo mount /dev/sda2 /media/feisty
(replace /dev/sda2 with name of drive, e.g. hda1 etc.)
chroot into your feisty drive.
sudo chroot /media/feisty su
Update your system via apt as normal. (sudo is not required)
apt-get update
apt-get upgrade
apt-get dist-upgrade
ctrl+d or type "exit" to exit the chroot, then reboot the computer and you should be able to get back into feisty.
Sometimes there will be no Internet connection in the chroot environment.
To correct this, we have to enter
sudo cp /etc/resolv.conf /media/feisty/etc/resolv.conf
Thanks, saved my day!
–v
Sound like just what I need, but it can’t find “su”
ubuntu@ubuntu:~$ sudo chroot /media/feisty su
chroot: cannot run command `su’: No such file or directory
silly me, I had mounted the wrong partition. =p
this is exactly what I needed to fix my bOrked feisty upgrade
My laptop went to sleep during the install and messed it up!
This would work great if my install hadn’t been ruined to the extent that everything (including su) segfaults. The install must have crashed when replacing a major library, I suppose. Over to the forums, I think!
Cheers for this, though! I’ll following when my system is actually well enough to be repaired…
My story:
What happened:
Synaptic upgrade Edgy->Feisty
Hanged towards the end
Couldn’t boot on restart
Workaround:
Rebooted
Hit ESC to interrupt grub
Selected on older kernel in recovery mode
System booted to text interface as usual
apt-get update
(Actually it make me use dpkg but it worked anyway)
apt-get upgrade
apt-get dist-upgrade
Rebooted
Feisty goodness
Maybe I got lucky, but I hope it helps.
my root drive is an lvm partition, and the ubuntu live cd doesn’t seem to have lvm. any tips?
My problem is that I can’t seem to get a desktop (GDM) after login. The system boots fine, I get the Ubuntu login screen, I login fine but then all I get is blank, yellow (brown?) screen with a mouse pointer outlined in white. I can move the mouse pointer so I suspect that the Xserver is running fine. If I run top it will usually show ~ 73 processes, 1 running (top of course) and 72 sleeping! What the heck for? I want’em awake doing what they are supposed to do!
ANY debug tips, RTFMs, anything at this point would be greatly appreciated. It does work sometimes, which encourages me to keep trying!
Art
I had a similar problem with IBEX . I tried some of the above, but have no internet connection on the problem computer, and the procedure above does not work for me. I was interupted while doing an upgrade from HARDY to IBEX
If I go to the restore function, and do the DPKG thing, it errors out after several tries. I think if I could get the internet that might work, but I am not sure how to get connected.
Ideas? Or is this thread dead?
Thanks! Jim Tanis
Hi,
any news? Is it possible to do
apt-get install somepackages
offline, getting the packages from the live cd?
Alex
Used to put this in sources.list file and make it work;
deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse
Thank you, very much for this. I just used these instructions to rescue an install of Lucid.
Thank you – the resolve.conf bit did the trick for me!