I accidentally removed ibus on my ubuntu 16 which is upgraded from 14.04 and suddenly I have unmet dependencies, broken packages, etc. I managed to chroot into the system using a live-cd-usb and mannually fixed a lot of dependencies by using aptitude install. But there are still dependencies I could not resolve manually, anyone has an idea what to do next?
root@ubuntu:/# apt install ubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ubuntu-desktop : Depends: nautilus but it is not going to be installed
Depends: nautilus-sendto but it is not going to be installed
Depends: software-center but it is not going to be installed
Depends: unity but it is not going to be installed
Depends: unity-control-center but it is not going to be installed
Recommends: bluez-alsa but it is not going to be installed
Recommends: brasero but it is not going to be installed
Recommends: cheese but it is not going to be installed
Recommends: empathy but it is not going to be installed
Recommends: firefox but it is not going to be installed
Recommends: gnome-orca but it is not going to be installed
Recommends: libreoffice-calc but it is not going to be installed
Recommends: nautilus-share but it is not going to be installed
Recommends: network-manager-gnome but it is not going to be installed
Recommends: network-manager-pptp-gnome but it is not going to be installed
Recommends: onboard but it is not going to be installed
Recommends: remmina but it is not going to be installed
Recommends: rhythmbox but it is not going to be installed
Recommends: rhythmbox-plugin-magnatune but it is not going to be installed
Recommends: shotwell but it is not going to be installed
Recommends: totem but it is not going to be installed
Recommends: totem-mozilla but it is not going to be installed
Recommends: transmission-gtk but it is not going to be installed
Recommends: unity-webapps-common but it is not going to be installed
Recommends: usb-creator-gtk but it is not going to be installed
Recommends: xul-ext-unity but it is not going to be installed
Recommends: xul-ext-webaccounts but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Info
root@ubuntu:/# uname -a
Linux ubuntu 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
sudo apt-mark showhold
will list held packages. – ravery Jun 30 '17 at 22:37Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – sunxd Jun 30 '17 at 22:41
apt-get clean
andapt-get autoremove
to clean up the package list – ravery Jun 30 '17 at 22:48Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. – sunxd Jun 30 '17 at 22:49
apt-get install -f
– ravery Jun 30 '17 at 22:52Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. – sunxd Jun 30 '17 at 22:53
apt-get install ubuntu-desktop
still isn't working? maybe an unconfigured package-- this is going beyond my knowledge – ravery Jun 30 '17 at 22:58