View Full Version : [ubuntu] repair broken packages every time I boot ?

July 31st, 2015, 05:30 PM
Ubuntu 14.04 freezes during boot (login screen appears, but keyboard and mouse are dead). It works only after I restart, enter recovery mode, choose "repair broken packages", and reboot.
This error is fully reproducible.
I checked memory and hard disk with no errors.

I'm relatively new to Ubuntu, so help is greatly appreciated!


July 31st, 2015, 06:21 PM
philipp21; Hello;

My 1st thought as :

(login screen appears, but keyboard and mouse are dead).

we have such an advisory, is to check in bios that the USB settings are correct .
Also that 'plug and play' is enabled as 'buntu is a 'plug and play' operating system.

As an aside. can you boot the liveDVD(USB) with no problems ?

it all starts in bios

August 2nd, 2015, 04:03 AM
USB boot option is enabled and working. I didn't find pnp options in BIOS however...

August 2nd, 2015, 04:11 AM
If you are 'resuming normal boot' from recovery mode then you are booting without video drivers being loaded so those drivers may be your issue instead of broken packages.

August 3rd, 2015, 01:48 AM
I double-checked my drivers. It's Nvidia GeForce GTX 945. I used sudo apt-get install nvidia-current nvidia-settings. It says drivers are up to date.

August 3rd, 2015, 12:00 PM
I double-checked my drivers. It's Nvidia GeForce GTX 945. I used sudo apt-get install nvidia-current nvidia-settings. It says drivers are up to date.

Except they aren't. The nvidia-current package is actually nvidia 304, a very old version. You need the 346 or 352, at least.

August 5th, 2015, 12:46 AM
nvidia-346 is now available in trusty, added for the upcoming 14.04.3 release. You should use it.
(either nvidia-346-updates or nvidia-346, basically the same though I'd use the former package. If you need even newer on 14.04 then there are ppa's or nvidia itself.

August 24th, 2015, 12:31 AM
I did update to 346. This is what I used to double-check...

philipp@philipp-XPS-8700:~$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 346.87 Tue Jul 14 18:29:34 PDT 2015
GCC version: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

But the problem still persists: I need to run "Repair broken packages" first before I can successfully boot. Otherwise the keyboard is frozen at log-in

August 24th, 2015, 02:41 AM
Try disconnecting the mouse and keyboard and see if the system boots completely. I've seen wireless keyboards fail, and it is not pretty.

August 24th, 2015, 02:54 AM
I'm curious. Is there anything inside folder "/var/crash".

September 7th, 2015, 05:28 PM
Yes! That was it! Disconnecting keyboard and mouse prevents it!!

But can I do something to fix it?


September 7th, 2015, 06:53 PM
Open a terminal and take note of the last line of:


Then plug in the mouse only.


Only post the mouse-related stuff. Troubleshooting in linux requires decomposition--breaking a big problem down into little problems and tackling one-at-a-time. It's boring and tedious, and patience is key. But everything is fixable.

Remove the mouse. Perhaps try the same thing with the keyboard. Even post the results.

Find a new keyboard and mouse to test with. Use a wired keyboard and wired mouse. Wireless adds another layer of complexity that makes troubleshooting difficult.

September 7th, 2015, 07:30 PM
The last line reads:
[ 2104.754299] type=1400 audit(1441644444.812:85): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=3036 comm="apparmor_parser"

And actually I'm using a wired mouse & keyboard.