apt-get dependency problems

Asked by bhaskar

i was installed Gnome3 desktop using PPA in my ubuntu natty OS. After installing the gnome 3 desktop it was not working and later i removed the PPA using ppa-purge. But i am not able to remove all the dependency packages from that installation. Now i tried to install ffmpeg video convertor and i am unable to install it, and the terminal issued error log and same will be posting here to rectify those errors. Why i am asking is that want to free my terminal from all errors to work ubuntu effectively.

The error log is posting here:

bhaskar@bhaskar-Inspiron-1525:~/Documents$ sudo apt-get install ffmpeg
[sudo] password for bhaskar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libavdevice52 libavfilter1
The following NEW packages will be installed:
  ffmpeg libavdevice52 libavfilter1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 342 kB of archives.
After this operation, 1,458 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ natty/main libavdevice52 i386 4:0.6.2-1ubuntu1 [44.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ natty/main libavfilter1 i386 4:0.6.2-1ubuntu1 [52.3 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ natty/main ffmpeg i386 4:0.6.2-1ubuntu1 [245 kB]
Fetched 342 kB in 3s (85.6 kB/s)
Selecting previously deselected package libavdevice52.
(Reading database ... 252668 files and directories currently installed.)
Unpacking libavdevice52 (from .../libavdevice52_4%3a0.6.2-1ubuntu1_i386.deb) ...
Selecting previously deselected package libavfilter1.
Unpacking libavfilter1 (from .../libavfilter1_4%3a0.6.2-1ubuntu1_i386.deb) ...
Selecting previously deselected package ffmpeg.
Unpacking ffmpeg (from .../ffmpeg_4%3a0.6.2-1ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up gnome-icon-theme (2.31.0-0ubuntu2) ...
update-alternatives: error: alternative path /usr/share/icons/gnome/scalable/places/ubuntu-logo.svg doesn't exist.
dpkg: error processing gnome-icon-theme (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of empathy:
 empathy depends on gnome-icon-theme (>= 2.30.0); however:
  Package gnome-icon-theme is not configured yet.
dpkg: error processing empathy (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of evince:
 evince depends on gnome-icon-theme (>= 2.17.1); however:
  Package gnome-icon-theme is not configured yet.
dpkg: error processing evince (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of evolution:
 evolution depends on gnome-icon-theme (>= 2.19.92); however:
  Package gnome-icon-theme is not configured yet.
dpkg: error processing evolution (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of evolution-exchange:
 evolution-exchange depends on evolution (>= 2.32.2); however:
  Package evolution is not configured yet.
 evolution-exchange depends on evolution (<< 2.3No apport report written because the error message indicates its a followup error from a previous failure.
                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                    No apport report written because MaxReports is reached already
  No apport report written because MaxReports is reached already
                                                                No apport report written because MaxReports is reached already
                                              3.0); however:
  Package evolution is not configured yet.
dpkg: error processing evolution-exchange (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-control-center:
 gnome-control-center depends on gnome-icon-theme (>= 2.24); however:
  Package gnome-icon-theme is not configured yet.
dpkg: error processing gnome-control-center (--configure):
 dependency problems - leaving unconfigured
Setting up libavdevice52 (4:0.6.2-1ubuntu1) ...
Setting up libavfilter1 (4:0.6.2-1ubuntu1) ...
Setting up ffmpeg (4:0.6.2-1ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 gnome-icon-theme
 empathy
 evince
 evolution
 evolution-exchange
 gnome-control-center
E: Sub-process /usr/bin/dpkg returned an error code (1)
bhaskar@bhaskar-Inspiron-1525:~/Documents$

Question information

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

First, try a normal update to see if will resolve the dependency problem:

sudo apt-get update && sudo apt-get update

If this does not work, see if the dependencies can be fixed by forcing completion:

sudo apt-get -f install

Possibly, this will have same effect if there unwanted dependencies that are causing a problem:

sudo apt-get -f remove

Chris

Revision history for this message
bhaskar (hinduvsp) said :
#2

The above commands doesn't make any difference and still the problem existing.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Try

sudo apt-get remove evolution-exchange
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get install --reinstall evolution-exchange

Revision history for this message
Chris (fabricator4) said :
#4

Ah, according to this how-to for installing Gnome 3, you cannot revert to Unity:

http://news.softpedia.com/news/How-to-Install-GNOME-3-on-Ubuntu-11-04-194085.shtml

I haven't found a how-to on going back to Unity.

I suggest you backup you data if it's not already on a separate partition and prepare for a re-install

Try removing Gnome Shell completely:

sudo apt-get --purge gnome-shell

You might try to re-install unity and it's dependencies:

sudo apt-get unity

I don't know how successful this will be. The comments on the linked webpage don't give me a lot of hope.

Remove the Gnome 3 PPA from your repositories if they are still there and run the above previous commands again (sudo apt-get update et al)

Chris.

Revision history for this message
Chris (fabricator4) said :
#5

What marcobra said.

He was writing his answer while I was still scratching my head.

Chris

Revision history for this message
bhaskar (hinduvsp) said :
#6

Anyway i was tried to remove those deb packages using sudo dpkg -P evolution gnome-icon-theme empathy evolution evince
Now my system ran without any errors. I think the problem came is that after my installation of ubuntu i was used APTonCD packages into synaptic package manager and in my sense those will be conflicted with the original gnome3 desktop packages.
Thanks for your help

Revision history for this message
Simon P (spirann) said :
#7

I had the same problem and all I had to do was to recreate:

/usr/share/icons/gnome/scalable/places/ubuntu-logo.svg
/usr/share/icons/gnome/scalable/places/debian-swirl.svg
/usr/share/icons/gnome/scalable/places/gnome-foot.svg
/usr/share/icons/gnome/scalable/places/swirl-foot.svg

with any icon or symlink to unbreak gnome-icon-theme

sudo apt-get -f install
should reconfigure the latest packages

Revision history for this message
Eli Cohen-Nehemia (elicn) said :
#8

Thanks Simon, that did the trick.

I 'sudo touch'ed the aforementioned files and then was able to reinstall gnome-icon-theme successfully.

Revision history for this message
Katie Molnar (fennecfanatic) said :
#9

Thanks, Simon! This saved my bacon. =)