3

I have installed ubuntu 12.04 along with windows vista as dual boot.It was working fine. But ubuntu was having some issue with the mousepad. So I installed and removed some pakages unknowing what they do. And now while booting ubuntu, I am getting an error "Could not write bytes:broken pipe" and it does nothing after showing this message. I tried may things like upgrading grub, lightdm restart etc. But still the same error.

Can someone help me on this? I am stuck.

9
  • Can you still do this at startup? hold down (or repeatedly tap) the Shift key while you boot. Grub should present you with a menu. Choose the second option, to go into recovery mode; then choose, Drop to root shell prompt. Can you? Oct 8, 2013 at 20:04
  • If yes, Do you have a log of removed packages? In the terminal you can input the following code ` sudo gedit /var/log/apt/history.log` and find the removed packages and then run sudo apt-get install package1 package2 package3 ... Oct 8, 2013 at 20:16
  • Yes, I could login with recovery mode. I checked the log file. It has a number of packages in the removal list as I had used apt-get autoremove cmd to uninstall unused packages. I am not able to open gedit. It gives some error. I opened it in vim and shows almost screen full of uninstalled packages . e.g. xserver-xorg-video-s3-lts-raring, xserver-xorg-input-vmmouse etc. How do I install all of them?
    – dhamu
    Oct 8, 2013 at 20:48
  • example: sudo apt-get install xserver-xorg-video-s3-lts-raring xserver-xorg-input-vmmouse etc. Note: always have a space between package1 package2 Oct 8, 2013 at 20:55
  • 1
    @JonathanRogiest I think you should write an answer to this question...
    – Zanna
    Sep 30, 2016 at 20:22

4 Answers 4

3

converted comments to an answer

The following steps should be taken:

First, check that you can still do this at startup:

hold down (or repeatedly tap) the Shift key while you boot. Grub should present you with a menu. Choose the second option, to go into recovery mode; then choose, Drop to root shell prompt.

Then look for the log of removed packages:

In the terminal you can input the following code

sudo -H gedit /var/log/apt/history.log

find the removed packages and then run

sudo apt-get install package1 package2 package3

The OP the confirmed through vim almost screen full of uninstalled packages for example xserver-xorg-video-s3-lts-raring, xserver-xorg-input-vmmouse

Thus to install the uninstalled packages:

example: sudo apt-get install xserver-xorg-video-s3-lts-raring xserver-xorg-input-vmmouse etc. Note: always have a space between package1 package2

2

In recovery mode, Select resume start up. If you are booted into Linux Terminal, Then probably , your previous installations has messed up you GUI Unity.

Try re-installing ubuntu desktop via apt

$ sudo apt-get install --reinstall ubuntu-desktop

Then Reboot. Hope this helps

1
0

the following steps work for me:

1- Restart your pc and boot with ubuntu recovery mode

from terminal install xserver-xorg-all and xserver-xorg-video-all

sudo apt-get install xserver-xorg-all xserver-xorge-video-all 

hope this help full for you!

0

For me, what solved it was pressing ctrl+alt+f1 to get to a login prompt. Once logged in, I ran:
sudo dpkg-reconfigure -phigh xserver-xorg.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.