I am trying to upgrade from Ubuntu 16.04 LTS to 18.04 LTS.
No matter which upgrade command I try: do-release-upgrade
or apt dist-upgrade
, at some point in the upgrade I start getting numerous "Failed to connect to bus: No such file or directory" errors and eventually the upgrade process stops with an error and the following packages in error:
- udev
- gnome-bluetooth
- x11-common
- bluez
- indicator-bluetooth
- rpcbind
- unity-control-center
- xserver-common
- initramfs-tools-core
- cups-daemon
- initramfs-tools
- libxvmc1:amd64
- xserver-xorg-core
- cups-core-drivers
- xserver-xorg-video-radeon
- libxtst6:amd64
- libxtst-dev:amd64
- network-manager
- ubuntu-drivers-common
- xserver-xorg-video-vesa
- software-properties-gtk
- xserver-xorg-video-amdgpu
- postgresql-common
- xserver-xorg-video-tdfx
- libice6:amd64
- libice6:i386
- libxt6:amd64
- libxt6:i386
- gnome-session-bin
- xwayland
- xserver-xorg-input-wacom
- xserver-xorg-input-synaptics
- ghostscript-x
- xserver-xorg-video-mach64
- libaudio2:amd64
- xserver-xorg-video-ati
- pulseaudio
- xserver-xorg-video-intel
- libxt-dev:amd64
- xserver-xorg-video-r128
- libqtgui4:amd64
- gnome-settings-daemon
- mutter
- xserver-xorg-video-qxl
- metacity
- unity-settings-daemon
- libmutter-2-0:amd64
- x11-xkb-utils
- vino
- xserver-xorg-input-evdev
- gnome-session
By manually intervening (running dpkg --configure on selected packages until all issues were resolved) I could eventually get all (remaining) packages installed and configured.
On my 3rd attempt I was able to get the furthest (by using apt dist-upgrade
) but even then I could not properly reboot - the next reboot would start reasonably OK, but starting with "Login Service", several services would fail to start (in approximately this order):
- Login Service (systemd-logind.service)
- Disk Manager
- Modem Manager (ModemManager.service)
- Network Manager (NetworkManager.service)
- /etc/rc.local Compatibility
- GNOME Display Manager (gdm.service)
- Bluetooth Service (bluetooth.service)
Even then, X11 was unable to initialise and I had no login prompt (CTRL-ALT-F1 would not give me a login prompt).
I tried reinstalling dbus but that did not work. I'm wondering if the pam_systemd was not installed (since I was also getting D-Bus connection errors)?
Clearly I missed some required packages in the manual intervention phase. Any suggestions?
dbus-user-session
package installing. – Bob Aug 18 '18 at 14:46