Can't login to Unity after upgrading to trusty from precise without any interruption.

Asked by amolveer

I've updated today my Trusy Thar installation. I can't login to Unity, with my account. Lightdm hangs after password input. It greets me with the screen where I must input my password. After inputing it, lightdm hangs and I can't login.
Please find the lightdm logs for your information.
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.2.1, UID=0 PID=5229
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Activating VT 7
[+0.00s] DEBUG: Logging to /var/log/lightdm/x-1.log
[+0.00s] DEBUG: Can't launch X server Xephyr, not found in path
[+0.00s] DEBUG: X server stopped
[+0.00s] DEBUG: Releasing VT 7
[+0.00s] DEBUG: Display server stopped
[+0.00s] DEBUG: Stopping display
[+0.00s] DEBUG: Display stopped
[+0.00s] DEBUG: Stopping X local seat, failed to start a display
[+0.00s] DEBUG: Stopping seat
[+0.00s] DEBUG: Seat stopped
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
amol@amol-Lenovo-G570:/var/log/lightdm$

Earlier I guess, there used to be a file called ubuntu.desktop in /usr/share/xsessions which is not present.

Please let me know how to solve this problem.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Press CTRL + ALT + F1 and lohin there and run:

sudo apt-get clean; sudo reboot

Is it ok?

Revision history for this message
amolveer (amol-comps) said :
#2

No andrew, still the problem exists. Also I found that I am unable to install any new packages. While installing any packages, it throws me with an error of broken dependencies for the below packages which cannot be resolved.

Errors were encountered while processing:
 python-aptdaemon
 libedata-cal-1.2-23
 python-gi
 software-center
 libgoa-backend-1.0-1:amd64
 qemu-kvm
 libebook-contacts-1.2-0
 gnome-control-center
 gnome-session
 gnome-bluetooth
 indicator-datetime
 libedata-book-1.2-20
 gnome-online-accounts
 libecal-1.2-16

PLease find the below error message while installing package say python-aptdaemon,

amol@amol-Lenovo-G570:~$ sudo apt-get install python-aptdaemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-aptdaemon is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 aptdaemon : Depends: python-aptdaemon (= 0.43+bzr805-0ubuntu1) but 1.1.1-1ubuntu5.1 is to be installed
 eog : Depends: libgnome-desktop-3-2 (>= 3.2.0) but it is not installable
 evolution-data-server : Depends: libedata-book-1.2-11 (>= 3.2.3) but it is not installable
 gnome-bluetooth : Depends: gir1.2-gnomebluetooth-1.0 (= 3.8.2.1-0ubuntu4) but 3.2.2-0ubuntu5 is to be installed
                   Recommends: gvfs-backends
 gnome-control-center : Depends: libgoa-1.0-0b (>= 3.5.90) but it is not going to be installed
                        Depends: libpwquality1 (>= 1.1.0) but it is not going to be installed
                        Depends: gkbd-capplet (>= 3.5.90) but it is not going to be installed
                        Depends: gnome-control-center-data (>= 1:3.6.3-0ubuntu56.1) but 1:3.4.1-0ubuntu1 is to be installed
                        Recommends: cups-pk-helper but it is not going to be installed
                        Recommends: ibus (>= 1.5.0)
                        Recommends: gnome-control-center-shared-data but it is not going to be installed
 gnome-online-accounts : Depends: libgoa-1.0-0b (= 3.10.3-0ubuntu1) but it is not going to be installed
 gnome-screensaver : Depends: libgnome-desktop-3-2 (>= 3.2.0) but it is not installable
 gnome-session : Depends: gnome-session-bin (>= 3.9.90-0ubuntu12) but 3.2.1-0ubuntu8 is to be installed
                 Depends: gnome-session-common (= 3.9.90-0ubuntu12) but 3.2.1-0ubuntu8 is to be installed
 indicator-datetime : Depends: libedataserver-1.2-18 (>= 3.5.91) but it is not going to be installed
                      Depends: systemd-services
                      Depends: systemd-shim but it is not going to be installed
                      Recommends: unity-control-center (>= 14.04.3) but it is not going to be installed or
                                  ubuntu-system-settings but it is not going to be installed
 libalgorithm-diff-xs-perl : Depends: perlapi-5.14.2 but it is not installable
 libapt-pkg-perl : Depends: perlapi-5.14.2 but it is not installable
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.19-0ubuntu6.3 is to be installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10) but 2.19-0ubuntu6.3 is to be installed
 libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10) but 2.19-0ubuntu6.3 is to be installed
 libclass-c3-xs-perl : Depends: perlapi-5.14.2 but it is not installable
 libebook-contacts-1.2-0 : Depends: libedataserver-1.2-18 (>= 3.7.90) but it is not going to be installed
 libecal-1.2-16 : Depends: libedataserver-1.2-18 (>= 3.10.0) but it is not going to be installed
 libedata-book-1.2-20 : Depends: libebackend-1.2-7 (>= 3.7.90) but it is not going to be installed
                        Depends: libedataserver-1.2-18 (>= 3.10.0) but it is not going to be installed
 libedata-cal-1.2-23 : Depends: libebackend-1.2-7 (>= 3.8.2) but it is not going to be installed
                       Depends: libedataserver-1.2-18 (>= 3.10.0) but it is not going to be installed
 libglib-perl : Depends: perlapi-5.14.2 but it is not installable
 libglib2.0-bin : Depends: libglib2.0-0 (= 2.32.3-0ubuntu1) but 2.40.0-2 is to be installed
 libgnome2-canvas-perl : Depends: perlapi-5.14.2 but it is not installable
 libgnome2-perl : Depends: perlapi-5.14.2 but it is not installable
 libgnome2-vfs-perl : Depends: perlapi-5.14.2 but it is not installable
 libgnome2-wnck-perl : Depends: perlapi-5.14.2 but it is not installable
 libgoa-backend-1.0-1 : Depends: libgoa-1.0-0b (>= 3.7.90) but it is not going to be installed
                        Depends: libgoa-1.0-common (= 3.10.3-0ubuntu1) but 3.4.0-0ubuntu1 is to be installed
 libgoo-canvas-perl : Depends: perlapi-5.14.2 but it is not installable
 libgtk2-gladexml-perl : Depends: perlapi-5.14.2 but it is not installable
 libgtk2-perl : Depends: perlapi-5.14.2 but it is not installable
 libgtk2-trayicon-perl : Depends: perlapi-5.14.2 but it is not installable
 libgtk2-unique-perl : Depends: perlapi-5.14.2 but it is not installable
 libjson-xs-perl : Depends: perlapi-5.14.2 but it is not installable
 libmouse-perl : Depends: perlapi-5.14.2 but it is not installable
 libnet-ssleay-perl : Depends: perlapi-5.14.2 but it is not installable
 libpango-perl : Depends: perlapi-5.14.2 but it is not installable
 libproc-processtable-perl : Depends: perlapi-5.14.2 but it is not installable
 libsocket6-perl : Depends: perlapi-5.14.2 but it is not installable
 libtext-iconv-perl : Depends: perlapi-5.14.2 but it is not installable
 libuuid-perl : Depends: perlapi-5.14.2 but it is not installable
 libvirt-bin : Depends: libvirt0 (= 0.9.8-2ubuntu17.1) but 1.2.2-0ubuntu13.1.5 is to be installed
 libxml-parser-perl : Depends: perlapi-5.14.2 but it is not installable
 multisystem : Depends: qemu
 nautilus : Depends: libgnome-desktop-3-2 (>= 3.2.0) but it is not installable
            Recommends: gvfs-backends
 perl-tk : Depends: perlapi-5.14.2 but it is not installable
 plymouth-label : Depends: libplymouth2 (= 0.8.2-2ubuntu31.1) but 0.8.8-0ubuntu17 is to be installed
                  Depends: plymouth (= 0.8.2-2ubuntu31.1) but 0.8.8-0ubuntu17 is to be installed
 plymouth-x11 : Depends: libplymouth2 (= 0.8.2-2ubuntu31.1) but 0.8.8-0ubuntu17 is to be installed
                Depends: plymouth (= 0.8.2-2ubuntu31.1) but 0.8.8-0ubuntu17 is to be installed
 python-aptdaemon : Depends: python-apt (>= 0.8.5~ubuntu1) but 0.8.3ubuntu7 is to be installed
 python-aptdaemon.gtk3widgets : Depends: python-aptdaemon (= 0.43+bzr805-0ubuntu1) but 1.1.1-1ubuntu5.1 is to be installed
 python-aptdaemon.gtkwidgets : Depends: python-aptdaemon (= 0.43+bzr805-0ubuntu1) but 1.1.1-1ubuntu5.1 is to be installed
 python-aptdaemon.pkcompat : Depends: python-aptdaemon (= 0.43+bzr805-0ubuntu1) but 1.1.1-1ubuntu5.1 is to be installed
 python-gi : Depends: libgirepository-1.0-1 (>= 1.33.10) but 1.32.0-1 is to be installed
             Depends: gir1.2-glib-2.0 (>= 1.35.9) but 1.32.0-1 is to be installed
 python-gi-cairo : Depends: python-gi (= 3.2.0-3) but 3.12.0-1ubuntu1 is to be installed
 qemu-kvm : Depends: qemu-system-x86 (>= 1.7.0+dfsg-2~)
 software-center : Depends: gvfs-backends
                   Depends: python-lxml but it is not going to be installed
                   Recommends: xz-utils (>= 5.1.1alpha+20120614-1)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of:

apt-cache policy aptdaemon python-aptdaemon; lsb_release -a

Thanks

Revision history for this message
amolveer (amol-comps) said :
#4

Please find the output as requested,

amol@amol-Lenovo-G570:~$ sudo apt-cache policy aptdaemon python-aptdaemon; lsb_release -a
aptdaemon:
  Installed: 0.43+bzr805-0ubuntu1
  Candidate: 1.1.1-1ubuntu5.1
  Version table:
     1.1.1-1ubuntu5.1 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1.1.1-1ubuntu5 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
 *** 0.43+bzr805-0ubuntu1 0
        100 /var/lib/dpkg/status
python-aptdaemon:
  Installed: 1.1.1-1ubuntu5.1
  Candidate: 1.1.1-1ubuntu5.1
  Version table:
 *** 1.1.1-1ubuntu5.1 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.1-1ubuntu5 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
amol@amol-Lenovo-G570:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Try booting into recovery mode and issue

sudo apt-get update
sudo apt-get -f install
sudo apt-get dist-upgrade

finally provide the output of the command
sudo dpkg --audit

Revision history for this message
amolveer (amol-comps) said :
#6

Hi Manfred,
Thanks for your input.
I tried booting into recovery mode and issued the command as given, but it thows me with an error :

root@amol-Lenovo-G570:~#sudo apt-get update
E: Lists directory /var/lib/apt/lists/partial is missing. - Acquire (2: No such file or directory)
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root ?

But I can see that partial directory is present and also I can see that all those files are showing the timestamp of Oct 17 when I was upgrading to Trusty from precise.

PLease find the all the directory and file details as such :

amol@amol-Lenovo-G570:/var/lib/apt/lists$ ls -ld /var/lib/dpkg/
drwxr-xr-x 7 root root 4096 Oct 18 18:48 /var/lib/dpkg/

amol@amol-Lenovo-G570:/var/lib/apt/lists$ ls -lrth /var/lib/dpkg/
total 9.9M
drwxr-xr-x 2 root root 4.0K Oct 6 2011 parts
-rw-r--r-- 1 root root 1 Oct 12 2011 format
-rw-r--r-- 1 root root 8 Oct 12 2011 cmethopt
-rw-r--r-- 1 root root 1.4K Sep 26 2012 diversions-old
-rw-r--r-- 1 root root 174 Oct 3 2013 statoverride-old
-rw-r--r-- 1 root root 1.3K Oct 3 2013 diversions
-rw-r--r-- 1 root root 11 Oct 17 21:14 arch
-rw-r--r-- 1 root root 2.4M Oct 17 21:21 available-old
drwxr-xr-x 2 root root 480K Oct 17 21:22 info
-rw-r--r-- 1 root root 2.4M Oct 17 21:22 available
-rw-r--r-- 1 root root 202 Oct 17 21:24 statoverride
drwxr-xr-x 2 root root 4.0K Oct 17 21:24 alternatives
drwxr-xr-x 2 root root 4.0K Oct 17 21:24 triggers
-rw-r--r-- 1 root root 2.4M Oct 17 21:25 status-old
drwxr-xr-x 2 root root 4.0K Oct 18 18:48 updates
-rw-r--r-- 1 root root 2.4M Oct 18 18:48 status
-rw-r----- 1 root root 0 Oct 18 18:48 lock

amol@amol-Lenovo-G570:/var/lib/apt/lists$ ls -lrth /var/lib/dpkg/lock
-rw-r----- 1 root root 0 Oct 18 18:48 /var/lib/dpkg/lock

/var/lib/dpkg/lock file is empty.

I guess this is something related to filesystem and permission problem.

Need your help.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

I guess this was my fault, my instructions were misleading.
There are two possibilities:

1. boot normal, press ctrl-alt-f1, log in with your username and password and execute the commands

or

2. boot into "recovery mode - root command prompt", remount the root disk into read-write mode with the command "mount -o rw,remount /", and execute the commands.

Please try again and report the outcome.

Revision history for this message
amolveer (amol-comps) said :
#8

Thanks Manfred Hampl, that solved my question.

Revision history for this message
amolveer (amol-comps) said :
#9

Please find the outcome of audit :
amol@amol-Lenovo-G570:~$ sudo dpkg --audit
[sudo] password for amol:
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
 multisystem Avec MultiSystem Créez votre LiveUSB MultiBoot simplemen
 remastersys-gtk Ubuntu and variant system remaster. This is the alternate
 libjson0:amd64 JSON manipulation library (transitional package)
 libjson0:i386 JSON manipulation library (transitional package)
 remastersys Ubuntu and variant system remaster This script creates a

Thanks Manfred for your kind help. Atlast I am able to login to unity and has solved my lightdm prob. But It was a painful journey as it took me nearly 6 hours for the upgradation without interruption in internet connection.

And I can see that trusty is no more trustable since there are major issues with the firefox : can't open link in new tab after right clicking or using mousepad.

I can't open my VM's, setup in Vmware player throwing me with an error : C header files matching your running kernel were not found. Refer to your distribution's documentation for installation instructions.

Though one problem is solved, it leads to several other problems. Quite painful experience. Ubuntu quiet popular for home editions, no more seems to be user friendly.

It's just a start, don't know what further painful experience trusty gives !!!!!

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

If you can boot into the GUI again, you might try the following commands:

sudo apt-get install --reinstall multisystem remastersys-gtk libjson0:amd64 libjson0:i386 remastersys
sudo apt-get install --reinstall install linux-headers-`uname -r`-generic linux-headers-generic

Finally try

sudo dpkg --audit

to check whether this has helped.