Unity uninstalled randomly, unable to re-install due to unmet dependencies/broken packages

Asked by Next_Gen

Hi,

My ubuntu launcher, and menu bar had randomly disappeared.

I tried to run unity from a terminal but received this output:

ubuntu@Ubuntu-UX31E:~$ unity
The program 'unity' is currently not installed. You can install it by typing:
sudo apt-get install unity

When I try to run the above suggestion, this is what occurs:

ubuntu@Ubuntu-UX31E:~$ sudo apt-get install unity
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:
 unity : Depends: libunity-core-6.0-5 (= 7.0.0daily13.04.18~13.04-0ubuntu1) but 7.0.0daily13.06.19~13.04-0ubuntu1 is to be installed
         Depends: unity-common (= 7.0.0daily13.04.18~13.04-0ubuntu1) but 7.0.0daily13.06.19~13.04-0ubuntu1 is to be installed
         Recommends: unity-lens-video but it is not going to be installed
         Recommends: unity-lens-photos but it is not going to be installed
         Recommends: unity-lens-friends but it is not going to be installed
         Recommends: unity-lens-shopping but it is not going to be installed
         Recommends: unity-lens-music but it is not going to be installed
         Recommends: indicator-appmenu but it is not going to be installed
         Recommends: indicator-sound but it is not going to be installed
         Recommends: hud but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

As per Step 5 on https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure I will post the output of that list of commands:

ubuntu@Ubuntu-UX31E:~$ sudo grep -R proxy /etc/apt/*
ubuntu@Ubuntu-UX31E:~$ grep proxy /etc/environment
ubuntu@Ubuntu-UX31E:~$ echo $http_proxy

ubuntu@Ubuntu-UX31E:~$ echo $ftp_proxy

ubuntu@Ubuntu-UX31E:~$ grep proxy /etc/bash.bashrc
ubuntu@Ubuntu-UX31E:~$ grep proxy ~/.bashrc
ubuntu@Ubuntu-UX31E:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
ubuntu@Ubuntu-UX31E:~$ sudo fuser -vvv /var/lib/dpkg/lock
ubuntu@Ubuntu-UX31E:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"
ubuntu@Ubuntu-UX31E:~$ uname -a
Linux Ubuntu-UX31E 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:46:08 UTC 2013 i686 i686 i686 GNU/Linux
ubuntu@Ubuntu-UX31E:~$ sudo rm /var/lib/apt/lists/lock
ubuntu@Ubuntu-UX31E:~$ sudo rm /var/lib/dpkg/lock
ubuntu@Ubuntu-UX31E:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
ubuntu@Ubuntu-UX31E:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
ubuntu@Ubuntu-UX31E:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
ubuntu@Ubuntu-UX31E:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
ubuntu@Ubuntu-UX31E:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
ubuntu@Ubuntu-UX31E:~$ sudo rm -rf /var/lib/dpkg/updates/*
ubuntu@Ubuntu-UX31E:~$ sudo rm -rf /var/lib/apt/lists
ubuntu@Ubuntu-UX31E:~$ sudo rm /var/cache/apt/*.bin
ubuntu@Ubuntu-UX31E:~$ sudo mkdir /var/lib/apt/lists
ubuntu@Ubuntu-UX31E:~$ sudo mkdir /var/lib/apt/lists/partial
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get clean
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libpkcs11-helper1* linux-headers-3.8.0-19* linux-headers-3.8.0-19-generic*
  linux-headers-3.8.0-23* linux-headers-3.8.0-23-generic*
  linux-image-3.8.0-19-generic* linux-image-3.8.0-23-generic*
  linux-image-extra-3.8.0-19-generic* linux-image-extra-3.8.0-23-generic*
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
After this operation, 390 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 258088 files and directories currently installed.)
Removing libpkcs11-helper1:i386 ...
Purging configuration files for libpkcs11-helper1:i386 ...
Removing linux-headers-3.8.0-19-generic ...
Removing linux-headers-3.8.0-19 ...
Removing linux-headers-3.8.0-23-generic ...
Removing linux-headers-3.8.0-23 ...
Removing linux-image-extra-3.8.0-19-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Deleting /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-26-generic
Found initrd image: /boot/initrd.img-3.8.0-26-generic
Found linux image: /boot/vmlinuz-3.8.0-25-generic
Found initrd image: /boot/initrd.img-3.8.0-25-generic
Found linux image: /boot/vmlinuz-3.8.0-23-generic
Found initrd image: /boot/initrd.img-3.8.0-23-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda2
done
Purging configuration files for linux-image-extra-3.8.0-19-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Removing linux-image-3.8.0-19-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
update-initramfs: Deleting /boot/initrd.img-3.8.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-26-generic
Found initrd image: /boot/initrd.img-3.8.0-26-generic
Found linux image: /boot/vmlinuz-3.8.0-25-generic
Found initrd image: /boot/initrd.img-3.8.0-25-generic
Found linux image: /boot/vmlinuz-3.8.0-23-generic
Found initrd image: /boot/initrd.img-3.8.0-23-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda2
done
Purging configuration files for linux-image-3.8.0-19-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-19-generic /boot/vmlinuz-3.8.0-19-generic
Removing linux-image-extra-3.8.0-23-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
update-initramfs: Deleting /boot/initrd.img-3.8.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-26-generic
Found initrd image: /boot/initrd.img-3.8.0-26-generic
Found linux image: /boot/vmlinuz-3.8.0-25-generic
Found initrd image: /boot/initrd.img-3.8.0-25-generic
Found linux image: /boot/vmlinuz-3.8.0-23-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda2
done
Purging configuration files for linux-image-extra-3.8.0-23-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
Removing linux-image-3.8.0-23-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
update-initramfs: Deleting /boot/initrd.img-3.8.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-26-generic
Found initrd image: /boot/initrd.img-3.8.0-26-generic
Found linux image: /boot/vmlinuz-3.8.0-25-generic
Found initrd image: /boot/initrd.img-3.8.0-25-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda2
done
Purging configuration files for linux-image-3.8.0-23-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-23-generic /boot/vmlinuz-3.8.0-23-generic
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.ubuntu.com raring Release.gpg [933 B]
Get:2 http://archive.ubuntu.com raring-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com raring-backports Release.gpg [933 B]
Get:4 http://archive.ubuntu.com raring-security Release.gpg [933 B]
Get:5 http://archive.ubuntu.com raring Release [40.8 kB]
Get:6 http://archive.ubuntu.com raring-updates Release [40.8 kB]
Get:7 http://archive.ubuntu.com raring-backports Release [40.8 kB]
Get:8 http://archive.ubuntu.com raring-security Release [40.8 kB]
Get:9 http://archive.ubuntu.com raring/main Sources [963 kB]
Get:10 http://archive.ubuntu.com raring/restricted Sources [5987 B]
Get:11 http://archive.ubuntu.com raring/multiverse Sources [171 kB]
Get:12 http://archive.ubuntu.com raring/universe Sources [5838 kB]
Get:13 http://archive.ubuntu.com raring/main i386 Packages [1168 kB]
Get:14 http://archive.ubuntu.com raring/restricted i386 Packages [9623 B]
Get:15 http://archive.ubuntu.com raring/universe i386 Packages [5405 kB]
Get:16 http://archive.ubuntu.com raring/multiverse i386 Packages [131 kB]
Get:17 http://archive.ubuntu.com raring/main Translation-en [673 kB]
Get:18 http://archive.ubuntu.com raring/multiverse Translation-en [98.4 kB]
Get:19 http://archive.ubuntu.com raring/restricted Translation-en [2767 B]
Get:20 http://archive.ubuntu.com raring/universe Translation-en [3736 kB]
Get:21 http://archive.ubuntu.com raring-updates/multiverse Sources [690 B]
Get:22 http://archive.ubuntu.com raring-updates/restricted Sources [14 B]
Get:23 http://archive.ubuntu.com raring-updates/universe Sources [52.2 kB]
Get:24 http://archive.ubuntu.com raring-updates/main Sources [41.1 kB]
Get:25 http://archive.ubuntu.com raring-updates/main i386 Packages [104 kB]
Get:26 http://archive.ubuntu.com raring-updates/restricted i386 Packages [14 B]
Get:27 http://archive.ubuntu.com raring-updates/universe i386 Packages [100 kB]
Get:28 http://archive.ubuntu.com raring-updates/multiverse i386 Packages [1403 B]
Get:29 http://archive.ubuntu.com raring-updates/main Translation-en [51.3 kB]
Get:30 http://archive.ubuntu.com raring-updates/multiverse Translation-en [587 B]
Get:31 http://archive.ubuntu.com raring-updates/restricted Translation-en [14 B]
Get:32 http://archive.ubuntu.com raring-updates/universe Translation-en [54.6 kB]
Get:33 http://archive.ubuntu.com raring-backports/main Sources [14 B]
Get:34 http://archive.ubuntu.com raring-backports/restricted Sources [14 B]
Get:35 http://archive.ubuntu.com raring-backports/universe Sources [3922 B]
Get:36 http://archive.ubuntu.com raring-backports/multiverse Sources [1403 B]
Get:37 http://archive.ubuntu.com raring-backports/main i386 Packages [14 B]
Get:38 http://archive.ubuntu.com raring-backports/restricted i386 Packages [14 B]
Get:39 http://archive.ubuntu.com raring-backports/universe i386 Packages [5606 B]
Get:40 http://archive.ubuntu.com raring-backports/multiverse i386 Packages [1345 B]
Get:41 http://archive.ubuntu.com raring-backports/main Translation-en [14 B]
Get:42 http://archive.ubuntu.com raring-backports/multiverse Translation-en [1040 B]
Get:43 http://archive.ubuntu.com raring-backports/restricted Translation-en [14 B]
Get:44 http://archive.ubuntu.com raring-backports/universe Translation-en [4426 B]
Get:45 http://archive.ubuntu.com raring-security/multiverse Sources [690 B]
Get:46 http://archive.ubuntu.com raring-security/restricted Sources [14 B]
Get:47 http://archive.ubuntu.com raring-security/universe Sources [6505 B]
Get:48 http://archive.ubuntu.com raring-security/main Sources [26.8 kB]
Get:49 http://archive.ubuntu.com raring-security/main i386 Packages [74.2 kB]
Get:50 http://archive.ubuntu.com raring-security/restricted i386 Packages [14 B]
Get:51 http://archive.ubuntu.com raring-security/universe i386 Packages [23.1 kB]
Get:52 http://archive.ubuntu.com raring-security/multiverse i386 Packages [1403 B]
Get:53 http://archive.ubuntu.com raring-security/main Translation-en [38.9 kB]
Get:54 http://archive.ubuntu.com raring-security/multiverse Translation-en [587 B]
Get:55 http://archive.ubuntu.com raring-security/restricted Translation-en [14 B]
Get:56 http://archive.ubuntu.com raring-security/universe Translation-en [14.8 kB]
Fetched 19.0 MB in 1min 32s (206 kB/s)
Reading package lists... Done
ubuntu@Ubuntu-UX31E:~$ sudo dpkg --configure -a
ubuntu@Ubuntu-UX31E:~$ sudo dpkg --clear-avail
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@Ubuntu-UX31E:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://archive.ubuntu.com raring Release.gpg
Hit http://archive.ubuntu.com raring-updates Release.gpg
Hit http://archive.ubuntu.com raring-backports Release.gpg
Hit http://archive.ubuntu.com raring-security Release.gpg
Hit http://archive.ubuntu.com raring Release
Hit http://archive.ubuntu.com raring-updates Release
Hit http://archive.ubuntu.com raring-backports Release
Hit http://archive.ubuntu.com raring-security Release
Hit http://archive.ubuntu.com raring/main Sources
Hit http://archive.ubuntu.com raring/restricted Sources
Hit http://archive.ubuntu.com raring/multiverse Sources
Hit http://archive.ubuntu.com raring/universe Sources
Hit http://archive.ubuntu.com raring/main i386 Packages
Hit http://archive.ubuntu.com raring/restricted i386 Packages
Hit http://archive.ubuntu.com raring/universe i386 Packages
Hit http://archive.ubuntu.com raring/multiverse i386 Packages
Hit http://archive.ubuntu.com raring/main Translation-en
Hit http://archive.ubuntu.com raring/multiverse Translation-en
Hit http://archive.ubuntu.com raring/restricted Translation-en
Hit http://archive.ubuntu.com raring/universe Translation-en
Hit http://archive.ubuntu.com raring-updates/multiverse Sources
Hit http://archive.ubuntu.com raring-updates/restricted Sources
Hit http://archive.ubuntu.com raring-updates/universe Sources
Hit http://archive.ubuntu.com raring-updates/main Sources
Hit http://archive.ubuntu.com raring-updates/main i386 Packages
Hit http://archive.ubuntu.com raring-updates/restricted i386 Packages
Hit http://archive.ubuntu.com raring-updates/universe i386 Packages
Hit http://archive.ubuntu.com raring-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com raring-updates/main Translation-en
Hit http://archive.ubuntu.com raring-updates/multiverse Translation-en
Hit http://archive.ubuntu.com raring-updates/restricted Translation-en
Hit http://archive.ubuntu.com raring-updates/universe Translation-en
Hit http://archive.ubuntu.com raring-backports/main Sources
Hit http://archive.ubuntu.com raring-backports/restricted Sources
Hit http://archive.ubuntu.com raring-backports/universe Sources
Hit http://archive.ubuntu.com raring-backports/multiverse Sources
Hit http://archive.ubuntu.com raring-backports/main i386 Packages
Hit http://archive.ubuntu.com raring-backports/restricted i386 Packages
Hit http://archive.ubuntu.com raring-backports/universe i386 Packages
Hit http://archive.ubuntu.com raring-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com raring-backports/main Translation-en
Hit http://archive.ubuntu.com raring-backports/multiverse Translation-en
Hit http://archive.ubuntu.com raring-backports/restricted Translation-en
Hit http://archive.ubuntu.com raring-backports/universe Translation-en
Hit http://archive.ubuntu.com raring-security/multiverse Sources
Hit http://archive.ubuntu.com raring-security/restricted Sources
Hit http://archive.ubuntu.com raring-security/universe Sources
Hit http://archive.ubuntu.com raring-security/main Sources
Hit http://archive.ubuntu.com raring-security/main i386 Packages
Hit http://archive.ubuntu.com raring-security/restricted i386 Packages
Hit http://archive.ubuntu.com raring-security/universe i386 Packages
Hit http://archive.ubuntu.com raring-security/multiverse i386 Packages
Hit http://archive.ubuntu.com raring-security/main Translation-en
Hit http://archive.ubuntu.com raring-security/multiverse Translation-en
Hit http://archive.ubuntu.com raring-security/restricted Translation-en
Hit http://archive.ubuntu.com raring-security/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@Ubuntu-UX31E:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted
     2 deb-src http://archive.ubuntu.com/ubuntu raring main restricted #Added by software-properties
     3
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5 # newer versions of the distribution.
     6 deb http://archive.ubuntu.com/ubuntu raring main restricted
     7 deb-src http://archive.ubuntu.com/ubuntu raring multiverse universe #Added by software-properties
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://archive.ubuntu.com/ubuntu raring-updates main restricted
    12 deb-src http://archive.ubuntu.com/ubuntu raring-updates multiverse restricted universe main #Added by software-properties
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15 ## team. Also, please note that software in universe WILL NOT receive any
    16 ## review or updates from the Ubuntu security team.
    17 deb http://archive.ubuntu.com/ubuntu raring universe
    18 deb http://archive.ubuntu.com/ubuntu raring-updates universe
    19
    20 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    21 ## team, and may not be under a free licence. Please satisfy yourself as to
    22 ## your rights to use the software. Also, please note that software in
    23 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    24 ## security team.
    25 deb http://archive.ubuntu.com/ubuntu raring multiverse
    26 deb http://archive.ubuntu.com/ubuntu raring-updates multiverse
    27
    28 ## N.B. software from this repository may not have been tested as
    29 ## extensively as that contained in the main release, although it includes
    30 ## newer versions of some applications which may provide useful features.
    31 ## Also, please note that software in backports WILL NOT receive any review
    32 ## or updates from the Ubuntu security team.
    33 deb http://archive.ubuntu.com/ubuntu raring-backports main restricted universe multiverse
    34 deb-src http://archive.ubuntu.com/ubuntu raring-backports main restricted universe multiverse #Added by software-properties
    35
    36 deb http://archive.ubuntu.com/ubuntu raring-security main restricted
    37 deb-src http://archive.ubuntu.com/ubuntu raring-security multiverse restricted universe main #Added by software-properties
    38 deb http://archive.ubuntu.com/ubuntu raring-security universe
    39 deb http://archive.ubuntu.com/ubuntu raring-security multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu raring partner
    46 # deb-src http://archive.canonical.com/ubuntu raring partner
    47
    48 ## This software is not part of Ubuntu, but is offered by third-party
    49 ## developers who want to ship their latest software.
    50 # deb http://extras.ubuntu.com/ubuntu raring main
    51 # deb-src http://extras.ubuntu.com/ubuntu raring main
    52 # deb http://deb.torproject.org/torproject.org raring main
ubuntu@Ubuntu-UX31E:~$

Any assistance getting this OS usable again would be greatly appreciated!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Next_Gen
Solved:
Last query:
Last reply:
Revision history for this message
Next_Gen (nextgenerationplur) said :
#1

If I try to "Fix Broken Packages" in Synaptic I receive the following:

"E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies"

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

What is the output of :

apt-cache policy unity

Thanks

Revision history for this message
Next_Gen (nextgenerationplur) said :
#3

Hi,

Thanks for the quick response. This is the output:

ubuntu@Ubuntu-UX31E:~$ apt-cache policy unity
unity:
  Installed: (none)
  Candidate: 7.0.0daily13.04.18~13.04-0ubuntu1
  Version table:
     7.0.0daily13.04.18~13.04-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main i386 Packages

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

Ok now the earlier commands ran. What is the output of :

sudo apt-get -f install

Thanks

Revision history for this message
Next_Gen (nextgenerationplur) said :
#5

Output requested:

ubuntu@Ubuntu-UX31E:~$ sudo apt-get -f install unity
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:
 unity : Depends: libunity-core-6.0-5 (= 7.0.0daily13.04.18~13.04-0ubuntu1) but 7.0.0daily13.06.19~13.04-0ubuntu1 is to be installed
         Depends: unity-common (= 7.0.0daily13.04.18~13.04-0ubuntu1) but 7.0.0daily13.06.19~13.04-0ubuntu1 is to be installed
         Recommends: unity-lens-video but it is not going to be installed
         Recommends: unity-lens-photos but it is not going to be installed
         Recommends: unity-lens-friends but it is not going to be installed
         Recommends: unity-lens-shopping but it is not going to be installed
         Recommends: unity-lens-music but it is not going to be installed
         Recommends: indicator-appmenu but it is not going to be installed
         Recommends: indicator-sound but it is not going to be installed
         Recommends: hud but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu@Ubuntu-UX31E:~$

Revision history for this message
Next_Gen (nextgenerationplur) said :
#6

Apologies, not sure if this what you wanted instead:

ubuntu@Ubuntu-UX31E:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

sudo dpkg -i unity-common_7.0.0daily13.04.18~13.04-0ubuntu1_all.deb

sudo apt-get -f install

Revision history for this message
Next_Gen (nextgenerationplur) said :
#9

Hi,

Unfortunately the ubuntu.hitsol.net server has a response code of 404.

ubuntu@Ubuntu-UX31E:~$ wget http://ubuntu.hitsol.net/ubuntu//pool/main/u/unity/libunity-core-6.0-5_7.0.0daily13.04.18~13.04-0ubuntu1_i386.deb
--2013-06-28 14:45:26-- http://ubuntu.hitsol.net/ubuntu//pool/main/u/unity/libunity-core-6.0-5_7.0.0daily13.04.18~13.04-0ubuntu1_i386.deb
Resolving ubuntu.hitsol.net (ubuntu.hitsol.net)... 74.125.31.121, 2404:6800:4008:c00::79
Connecting to ubuntu.hitsol.net (ubuntu.hitsol.net)|74.125.31.121|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-06-28 14:45:26 ERROR 404: Not Found.

I also receive the same on isup.me. Do you know of any alternative mirrors I could download the package from?

Revision history for this message
Next_Gen (nextgenerationplur) said :
#10

Hi Andrew,

Don't worry, I was able to find a list of mirrors here: http://packages.ubuntu.com/raring/i386/libunity-core-6.0-5/download

If this works I'll make sure to mark it as solved.

Revision history for this message
Next_Gen (nextgenerationplur) said :
#11

I managed to download the file from a different server, however when I try to run the second command posted, I receive dependency errors:

ubuntu@Ubuntu-UX31E:~$ sudo dpkg -i libunity-core-6.0-5_7.0.0daily13.04.18~13.04-0ubuntu1_i386.deb
dpkg: warning: downgrading libunity-core-6.0-5 from 7.0.0daily13.06.19~13.04-0ubuntu1 to 7.0.0daily13.04.18~13.04-0ubuntu1
(Reading database ... 200989 files and directories currently installed.)
Preparing to replace libunity-core-6.0-5 7.0.0daily13.06.19~13.04-0ubuntu1 (using libunity-core-6.0-5_7.0.0daily13.04.18~13.04-0ubuntu1_i386.deb) ...
Unpacking replacement libunity-core-6.0-5 ...
dpkg: dependency problems prevent configuration of libunity-core-6.0-5:
 libunity-core-6.0-5 depends on unity-services (= 7.0.0daily13.04.18~13.04-0ubuntu1); however:
  Version of unity-services on system is 7.0.0daily13.06.19~13.04-0ubuntu1.
 libunity-core-6.0-5 depends on unity-common (= 7.0.0daily13.04.18~13.04-0ubuntu1); however:
  Version of unity-common on system is 7.0.0daily13.06.19~13.04-0ubuntu1.

dpkg: error processing libunity-core-6.0-5 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libunity-core-6.0-5

Revision history for this message
Next_Gen (nextgenerationplur) said :
#12

I think I understand what is wrong and how to fix it. I'll need to downgrade each package in turn that requires it before I get back to the original issue of installing ubuntu-desktop/unity.

Will let you know how I get on.

Revision history for this message
Next_Gen (nextgenerationplur) said :
#13

Hi,

Thanks for all your help. I managed to resolve it by taking the following steps:

1. Download the unity-services dependency.
2. Install with dpkg -i
3. Run the rest of the commands you suggested.
4. apt-get install ubuntu-desktop

At this point unity was installed but it wasn't showing up when I ran the command "unity", so I reset unity to the default config with:

5. unity --reset-icons

Then my launcher and menu bar re-appeared.

Thanks for all your help and kind regards! :)