Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Luis_POffline
Post subject: Useless dpkg/apt-get  PostPosted: 09.04.2012, 22:52



Joined: 2010-09-11
Posts: 151
Location: Barcelona, Spain
Status: Offline
For some weird manoeuvre (my fault, I confess) the dpkg/apt-get system has turned unusable. For instance:

      Code:
root@myxbox:/home/lluis# apt-get install xzip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libgnome-desktop-3-2 : Depends: gnome-desktop3-data (= 3.2.1-4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@myxbox:/home/lluis# apt-get -s dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libgnome-desktop-3-2 : Depends: gnome-desktop3-data (= 3.2.1-4) but it is not installed
E: Unmet dependencies. Try using -f.
 
root@myxbox:/home/lluis# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gnome-desktop3-data
The following NEW packages will be installed:
  gnome-desktop3-data
0 upgraded, 1 newly installed, 0 to remove and 49 not upgraded.
1 not fully installed or removed.
Need to get 0 B/740 kB of archives.
After this operation, 3639 kB of additional disk space will be used.

Do you want to continue [Y/n]? y
(Reading database ... 230772 files and directories currently installed.)
Unpacking gnome-desktop3-data (from .../gnome-desktop3-data_3.2.1-4_all.deb) ...
dpkg: error processing /var/cache/apt/archives/gnome-desktop3-data_3.2.1-4_all.deb (--unpack):
 trying to overwrite '/usr/share/omf/gpl/gpl-sv.omf', which is also in package mate-desktop-gnome 1.2.0-1+wheezy
configured to not write apport reports
                                      dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-desktop3-data_3.2.1-4_all.deb
[ Rootkit Hunter version 1.3.8 ]
File updated: searched for 166 files, found 136
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@myxbox:/home/lluis# dpkg --remove gnome-desktop3-datadpkg: warning: ignoring request to remove gnome-desktop3-data which isn't installed.

I've deleted /usr/share/omf/gpl/gpl-sv.omf, which is a simple locale file, and tried again, but no success. Any time I try to do some operation with dpkg/apt-get, I've got always the same answer: E: Unmet dependencies.

I've also deleted (yes, I know it is dangerous, but I was in a jam) /var/cache/apt/archives/gnome-desktop3-data_3.2.1-4_all.deb with no luck and I've searched in /var/lib/dpkg/status this package:

      Code:
Package: gnome-desktop3-data
Status: install ok not-installed
Priority: optional
Section: gnome
Architecture: all


On the other hand my system (AMD64 & Xfce) runs smoothly, but I cannot use dpkg/apt-get. Any help will be very appreciated.

Regards

Luis_P.
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: Useless dpkg/apt-get  PostPosted: 10.04.2012, 08:35
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
Oh boy… Third party repositories should be used with care - if at all. Installing an "alternative" out-of-debian desktop environment (Mate) which is based on and yet trying to replace an in-debian environment (Gnome) is basically just begging for breaking more sooner than later…

Might (or might not) work:
      Code:
dpkg --purge mate-desktop-gnome
apt-get install -f

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Luis_POffline
Post subject: It does not run  PostPosted: 10.04.2012, 12:49



Joined: 2010-09-11
Posts: 151
Location: Barcelona, Spain
Status: Offline
Thanks for your help. Unfortunately, these orders do not go:

      Code:

root@myxbox:/home/lluis# dpkg --purge mate-desktop-gnome
dpkg: dependency problems prevent removal of mate-desktop-gnome:
 mate-desktop depends on mate-desktop-gnome | gnome-desktop-data; however:
  Package mate-desktop-gnome is to be removed.
  Package gnome-desktop-data is not installed.
dpkg: error processing mate-desktop-gnome (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 mate-desktop-gnome


root@myxbox:/home/lluis# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gnome-desktop3-data
The following NEW packages will be installed:
  gnome-desktop3-data
0 upgraded, 1 newly installed, 0 to remove and 95 not upgraded.
1 not fully installed or removed.
Need to get 740 kB of archives.
After this operation, 3639 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 ftp://ftp.rediris.es/debian/ sid/main gnome-desktop3-data all 3.2.1-4 [740 kB]
Fetched 740 kB in 2s (281 kB/s)             
dpkg-preconfigure: unable to re-open stdin: No such file or directory
(Reading database ... 230772 files and directories currently installed.)
Unpacking gnome-desktop3-data (from .../gnome-desktop3-data_3.2.1-4_all.deb) ...
dpkg: error processing /var/cache/apt/archives/gnome-desktop3-data_3.2.1-4_all.deb (--unpack):
 trying to overwrite '/usr/share/omf/gpl/gpl-sv.omf', which is also in package mate-desktop-gnome 1.2.0-1+wheezy
configured to not write apport reports
                                      dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-desktop3-data_3.2.1-4_all.deb
[ Rootkit Hunter version 1.3.8 ]
File updated: searched for 166 files, found 136
E: Sub-process /usr/bin/dpkg returned an error code (1)


Then, what can I do? To reinstall the complete system seems to me too drastic, but if there is not another solution ...

For your information and for the users interested in another desktop (some time ago there was an embryonic team trying to port gnome to aptosid), I can say that MATE has been running very well during three months. IMHO it is an excellent desktop manager, much better than the scorned Gnome3. It is only my opinion, but I think that the aptosid team could consider to redirect the efforts of the unborn gnome/aptosid team to MATE. Just a suggestion.

Regards.

Luis_P
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: It does not run  PostPosted: 10.04.2012, 16:53
Team Member


Joined: 2010-09-02
Posts: 482

Status: Offline
Mhh, so as you want to keep Mate we can try an alternative
      Code:
dpkg --force-overwrite --install /var/cache/apt/archives/gnome-desktop3-data_3.2.1-4_all.deb

This should instruct dpkg to override the offending file.


I would say that only a reinstall can cleanup the system, but it seems like as you don't want a clean system…

The repository containing Mate you use does not seem to be (always) compatible with 'debian unstable', so you should prepare to see these and other errors from time to time - and you should learn what these messages mean and how you can workaround them (generally, these messages are here to protect you from doing something stupid [in regards to a easily maintainable system], but you want to do exactly that, so you have to force it…)

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Luis_POffline
Post subject: Solved  PostPosted: 10.04.2012, 19:01



Joined: 2010-09-11
Posts: 151
Location: Barcelona, Spain
Status: Offline
I'm very grateful for your assistance, Don.

The problem, I think, has been resolved. For the stock of knowledge in this forum, I explain here what I did.

Searching a lot in the net, I've found an old thread in debian-lists with a very similar question. The answer was to run (being in init 3):
/usr/share/debconf/fix_db.pl
and, if not success, delete all the files into /var/cache/debconf, wich is very drastic but less than reinstall the system.

I've followed the first advice and then
      Code:

apt-get update
apt-get -f dist-upgrade

_______________________________________________________
Edit

Some more info forgot before:

After the order
apt-get -f dist-upgrade
many packages were unpacked but, when dpkg started to configure them, suddenly the process crashed again with the warning:
dpkg: dependency problems...
I've been able to fix it with
dpkg --configure -a
which did the trick.

For the sake of general knowledge.
_______________________________________________________

And it has worked!Very Happy

There are, yet, some odd packages on hold which (if my memory is no too bad), haven't been put there by me, but I'll look it after.

Regards and thanks again.

Luis_P.


Last edited by Luis_P on 11.04.2012, 17:15; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Solved  PostPosted: 10.04.2012, 19:18



Joined: 2010-08-25
Posts: 750

Status: Offline
"--force-overwrite" doesn't 'solve' anything, it just does brain surgery with a chainsaw; once you go there, the system integrity is toast.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio