Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Dependency hell

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
silas2
Posts: 38
Joined: 2019-09-30 13:22

Dependency hell

#1 Post by silas2 »

I seem to have got into a fix, when I try to run
sudo gdebi cerebro_0.3.0_amd64.deb
I get :

Code: Select all

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gconf2-common
 gconf-service
 libgconf-2-4:amd64
 gconf2
+ a massive list of " warning: files list file for package ...." lines, although I can cd into var/lib/dpkg/info and see a big list of packages...?

I can't seem to remove this gconf2 - it doesn't seem a massively fundamental app, but every time I try to remove I get more config problems.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Dependency hell

#2 Post by bester69 »

if before doesnt work out, you could try with aptitude.. aptitude help you to fix dependencies giving you several path ways installation dependencies...:

first, you query the version you want to install:
sudo aptitude versions gconf2
Package gconf2:
i A 3.2.6-4+b1 oldstable

second, you give it the versions you want:
sudo aptitude install gconf2=3.2.6-4+b1
------
Then, aptitude will propose you several solutions so you pick the right one..

Other way, is to use : sudo apt-get dist-upgrade, but that option will drop all non debian packages of your system
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Dependency hell

#3 Post by Head_on_a_Stick »

@OP: please post your sources:

Code: Select all

apt policy
@bester69: don't be a ****, some people won't know that first command you suggested wipes their system.
deadbang

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#4 Post by silas2 »

Thanks for helping me with this.
This is the result of apt policy:
(Mysql could go, I only wanted the workbench but i couldn't get it to work and I put dbeaver on instead. There are other apps i put on, but i guess they're not listed because i downloaded the .deb file..is that right? )
Errr. which command wipes the system?

Code: Select all

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://repo.mysql.com/apt/debian buster/mysql-tools amd64 Packages
     release o=MySQL,n=buster,l=MySQL,c=mysql-tools,b=amd64
     origin repo.mysql.com
 500 http://repo.mysql.com/apt/debian buster/mysql-8.0 amd64 Packages
     release o=MySQL,n=buster,l=MySQL,c=mysql-8.0,b=amd64
     origin repo.mysql.com
 500 http://repo.mysql.com/apt/debian buster/mysql-apt-config amd64 Packages
     release o=MySQL,n=buster,l=MySQL,c=mysql-apt-config,b=amd64
     origin repo.mysql.com
 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 https://dbeaver.io/debs/dbeaver-ce  Packages
     release c=
     origin dbeaver.io
 500 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe,b=amd64
     origin archive.ubuntu.com
 500 http://deb.debian.org/debian buster/main amd64 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian buster-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
Pinned packages:


silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#5 Post by silas2 »

When I run aptitude versions i get this:

Code: Select all

silas@debian:~$ sudo aptitude versions gconf2
udA 3.2.6-5   
Anything else?

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: Dependency hell

#6 Post by 4D696B65 »

silas2 wrote:

Code: Select all

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://repo.mysql.com/apt/debian buster/mysql-tools amd64 Packages
     release o=MySQL,n=buster,l=MySQL,c=mysql-tools,b=amd64
     origin repo.mysql.com
 500 http://repo.mysql.com/apt/debian buster/mysql-8.0 amd64 Packages
     release o=MySQL,n=buster,l=MySQL,c=mysql-8.0,b=amd64
     origin repo.mysql.com
 500 http://repo.mysql.com/apt/debian buster/mysql-apt-config amd64 Packages
     release o=MySQL,n=buster,l=MySQL,c=mysql-apt-config,b=amd64
     origin repo.mysql.com
 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
     release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
     origin dl.google.com
 500 https://dbeaver.io/debs/dbeaver-ce  Packages
     release c=
     origin dbeaver.io
 500 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe,b=amd64
     origin archive.ubuntu.com
 500 http://deb.debian.org/debian buster/main amd64 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian buster-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
Pinned packages:

Your sources.list is a mess. Mixing 3rd party repo with ubuntu repo with debian repo, yikes :o

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#7 Post by silas2 »

Oh, what can i do to clean it up?

But, for example, the mysql one, should i not have used apt-get with that?

arzgi
Posts: 1183
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Dependency hell

#8 Post by arzgi »

silas2 wrote:Oh, what can i do to clean it up?

But, for example, the mysql one, should i not have used apt-get with that?
https://wiki.debian.org/DontBreakDebian

Read that with thought, and learn from your mistake. Then reinstall.

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#9 Post by silas2 »

Oh no!!! Is there really no 'restore' possible without going back to a blank hard disk?

What do you do about apps like dbeaver which offer a .deb file download?

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Dependency hell

#10 Post by L_V »

Start with this dependency hell you have created:

Code: Select all

archive.ubuntu.com/ubuntu trusty/universe amd64 Packages

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#11 Post by silas2 »

Right, so i've taken that out of /etc/apt/sources.list, is there any way of seeing what's come from there?

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Dependency hell

#12 Post by L_V »

What is reporting this ?

Code: Select all

find /etc/apt -name '*.list' -print -exec grep "^deb " {} \;

Code: Select all

apt install -fs

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Dependency hell

#13 Post by stevepusser »

silas2 wrote:Oh no!!! Is there really no 'restore' possible without going back to a blank hard disk?

What do you do about apps like dbeaver which offer a .deb file download?
Sure, just restore from your latest system backup. If, contrary to what you've been told, you never made one, you have had a "learning experience". You should be able to save and restore your /home folder manually, though. That's made easier if you have it in its own partition.

Even if dbeaver is a perfectly compatible deb package, you often won't be able to install it on an already broken system like yours.
MX Linux packager and developer

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#14 Post by silas2 »

Code: Select all

silas@debian:~$ find /etc/apt -name '*.list' -print -exec grep "^deb " {} \;
/etc/apt/sources.list
deb http://security.debian.org/debian-security buster/updates main
deb http://deb.debian.org/debian/ buster-updates main
deb http://deb.debian.org/debian/ buster main
/etc/apt/sources.list.d/mysql.list
deb http://repo.mysql.com/apt/debian/ buster mysql-apt-config
deb http://repo.mysql.com/apt/debian/ buster mysql-8.0
deb http://repo.mysql.com/apt/debian/ buster mysql-tools
/etc/apt/sources.list.d/dbeaver.list
deb https://dbeaver.io/debs/dbeaver-ce /
/etc/apt/sources.list.d/google-chrome.list
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
and:

Code: Select all

 apt install -fs
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gconf-service gconf2 gconf2-common libgconf-2-4
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
Conf gconf2-common (3.2.6-5 Debian:10.2/stable [all])
Conf gconf-service (3.2.6-5 Debian:10.2/stable [amd64])
Conf libgconf-2-4 (3.2.6-5 Debian:10.2/stable [amd64])
Conf gconf2 (3.2.6-5 Debian:10.2/stable [amd64])
There's not much been installed on the system and apt is still working, surely I can 'purge' my way out of trouble?

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Dependency hell

#15 Post by L_V »

I don't think you need a complete reinstall because of 4 packages
Do you need this => gconf-service gconf2 gconf2-common libgconf-2-4 ?
Probably used by gnome if gnome is installed, but confirm.

Code: Select all

apt remove -s gconf-service gconf2 gconf2-common libgconf-2-4

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#16 Post by silas2 »

I ran that, with this output:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  gconf-service gconf2 gconf2-common libgconf-2-4
0 upgraded, 0 newly installed, 4 to remove and 1 not upgraded.
4 not fully installed or removed.
Remv gconf2 [3.2.6-5]
Remv gconf-service [3.2.6-5]
Remv libgconf-2-4 [3.2.6-5]
Remv gconf2-common [3.2.6-5]
+ an OS update went ok.
I just tried apt install searchmonkey ( i found it amongst the debian packages,) but i'm still getting the output listing loads of " dpkg: warning: files list file for package" + back to the

Code: Select all

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gconf2-common
 gconf-service
 libgconf-2-4:amd64
 gconf2


L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Dependency hell

#17 Post by L_V »

Show this

Code: Select all

apt list gconf-service gconf2 gconf2-common libgconf-2-4
Try this

Code: Select all

apt-get reinstall gconf-service gconf2 gconf2-common libgconf-2-4

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#18 Post by silas2 »

What d'you reckon?

Code: Select all

$ apt list gconf-service gconf2 gconf2-common libgconf-2-4
Listing... Done
gconf-service/stable,now 3.2.6-5 amd64 [installed,auto-removable]
gconf2-common/stable,now 3.2.6-5 all [installed,auto-removable]
gconf2/stable,now 3.2.6-5 amd64 [installed,auto-removable]
libgconf-2-4/stable,now 3.2.6-5 amd64 [installed,auto-removable]
silas@debian:~$ apt-get reinstall gconf-service gconf2 gconf2-common libgconf-2-4
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
silas@debian:~$ sudo apt-get reinstall gconf-service gconf2 gconf2-common libgconf-2-4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for gconf-service:amd64


L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Dependency hell

#19 Post by L_V »

Code: Select all

# apt remove gconf-service gconf2 gconf2-common libgconf-2-4

silas2
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

#20 Post by silas2 »

Running that command i get this + a load more of the warnings about 'files list file' missing, but I can see loads of .list files....?

Code: Select all

dpkg: warning: files list file for package 'libwayland-client0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwayland-client0:i386' missing; assuming package has no files currently installed
(Reading database ... 5283 files and directories currently installed.)
Removing gconf2 (3.2.6-5) ...
Removing gconf-service (3.2.6-5) ...
dpkg: warning: while removing gconf-service, directory '/usr/share/dbus-1/services' not empty so not removed
Removing libgconf-2-4:amd64 (3.2.6-5) ...
Removing gconf2-common (3.2.6-5) ...


Post Reply