Dependency hell

New to Debian (Or Linux in general)? Ask your questions here!

Dependency hell

Postby silas2 » 2019-12-17 17:28

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.
silas2
 
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

Postby bester69 » 2019-12-17 17:48

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:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1555
Joined: 2015-04-02 13:15

Re: Dependency hell

Postby Head_on_a_Stick » 2019-12-17 18:22

@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.
User avatar
Head_on_a_Stick
 
Posts: 11508
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Dependency hell

Postby silas2 » 2019-12-18 11:57

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

Postby silas2 » 2019-12-18 13:56

When I run aptitude versions i get this:
Code: Select all
silas@debian:~$ sudo aptitude versions gconf2
udA 3.2.6-5   

Anything else?
silas2
 
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

Postby 4D696B65 » 2019-12-18 14:28

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
User avatar
4D696B65
 
Posts: 2452
Joined: 2009-06-28 06:09

Re: Dependency hell

Postby silas2 » 2019-12-18 17:40

Oh, what can i do to clean it up?

But, for example, the mysql one, should i not have used apt-get with that?
silas2
 
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

Postby arzgi » 2019-12-18 18:20

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.
arzgi
 
Posts: 567
Joined: 2008-02-21 17:03
Location: Finland

Re: Dependency hell

Postby silas2 » 2019-12-18 19:16

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?
silas2
 
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

Postby L_V » 2019-12-18 20:13

Start with this dependency hell you have created:
Code: Select all
archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
L_V
 
Posts: 1270
Joined: 2007-03-19 09:04

Re: Dependency hell

Postby silas2 » 2019-12-18 20:35

Right, so i've taken that out of /etc/apt/sources.list, is there any way of seeing what's come from there?
silas2
 
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

Postby L_V » 2019-12-18 20:49

What is reporting this ?
Code: Select all
find /etc/apt -name '*.list' -print -exec grep "^deb " {} \;

Code: Select all
apt install -fs
L_V
 
Posts: 1270
Joined: 2007-03-19 09:04

Re: Dependency hell

Postby stevepusser » 2019-12-18 21:01

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.6, Blender 2.8.2, 5.5 kernels, Chromium with va-api, Telegram-desktop 1.9.21, Clipgrab 3.8.11
User avatar
stevepusser
 
Posts: 11550
Joined: 2009-10-06 05:53

Re: Dependency hell

Postby silas2 » 2019-12-18 21:12

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?
silas2
 
Posts: 38
Joined: 2019-09-30 13:22

Re: Dependency hell

Postby L_V » 2019-12-18 21:18

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
L_V
 
Posts: 1270
Joined: 2007-03-19 09:04

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable