Ubuntu下,误删libxml2文件,导致系统无法正常进入GNOME工作的解决办法。
Assuming you are root during recovery (# instead of $), if not, append every command with
sudo
This will turn on your Wired connection
ifconfig eth0 up
Connect
dhclient eth0
Check that we are online
ping -c 4 google.com
If we are not online, no need to continue with the commands since they will error out.
Update the package list, re-install the default Ubuntu-Desktop and libxml2
apt-get update
apt-get install ubuntu-desktop libxml2
And finally reboot.
reboot
Assuming you are root during recovery (# instead of $), if not, append every command with
sudo
This will turn on your Wired connection
ifconfig eth0 up
Connect
dhclient eth0
Check that we are online
ping -c 4 google.com
If we are not online, no need to continue with the commands since they will error out.
Update the package list, re-install the default Ubuntu-Desktop and libxml2
apt-get update
apt-get install ubuntu-desktop libxml2
And finally reboot.
reboot