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 issues: cannot install anything

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
AlexS8
Posts: 6
Joined: 2021-05-20 13:05

Dependency issues: cannot install anything

#1 Post by AlexS8 »

Hello,

When I run "apt-get install package " I get this error message:

The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 215-17+deb8u5) but 215-17+deb8u13 is to be installed
systemd-sysv : Depends: systemd (= 215-17+deb8u7) but 215-17+deb8u5 is to be installed

I tried "apt-get -f install", "sudo apt-get clean", "sudo dpkg --configure -a", and "sudo apt-get autoremove" and yet another issue appears:

dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1

Since it is a production server, what would be the best approach to solve this issue?

Version: Debian GNU/Linux 8.11 (jessie)

Thank you!

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

Re: Dependency issues: cannot install anything

#2 Post by 4D696B65 »

AlexS8 wrote: When I run "apt-get install package " I get this error message:

The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 215-17+deb8u5) but 215-17+deb8u13 is to be installed
systemd-sysv : Depends: systemd (= 215-17+deb8u7) but 215-17+deb8u5 is to be installed

Version: Debian GNU/Linux 8.11 (jessie)
What exactly is package ?
Post your sources.list

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Dependency issues: cannot install anything

#3 Post by dilberts_left_nut »

How did this start?
Post the relevant /var/log/apt/history
AdrianTM wrote:There's no hacker in my grandma...

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

Re: Dependency issues: cannot install anything

#4 Post by bester69 »

AlexS8 wrote:Hello,

When I run "apt-get install package " I get this error message:

The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 215-17+deb8u5) but 215-17+deb8u13 is to be installed
systemd-sysv : Depends: systemd (= 215-17+deb8u7) but 215-17+deb8u5 is to be installed

I tried "apt-get -f install", "sudo apt-get clean", "sudo dpkg --configure -a", and "sudo apt-get autoremove" and yet another issue appears:

dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1

Since it is a production server, what would be the best approach to solve this issue?

Version: Debian GNU/Linux 8.11 (jessie)

Thank you!
dont tell the boss and run!!! :lol:

You can try:
sudo aptitude versions packake (to query available versions for package)
and then install the one you wish:
sudo aptitude install packake=version
Aptitude will show you several different paths to follow that might fix the dependecy issues..you just need to pick the propely one that fix it in a logical way..

Sometimes aptitudes neither cant do it and you have to download specific versions from debian.packages.com.. install them with dpkg and the apply apt force.
like this.:
1- sudo dpkg -i package1_v1.deb package2_v1.deb package3_v1.deb
and then
2- sudo apt-get install -f (to make apt fix it)

Im not an expert but I always fix it like that. :? Aptitude can help ou a lot.. anyways try to think first what youve changed or installed in order to choose an estrategy to procced.. bad idea mess with a server production

I recommend you all to use btrfs filesytem, in order to work with system snapshots so that you can rollback anywhere, anytime with just a reboot and forgert messing the system for ever
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

AlexS8
Posts: 6
Joined: 2021-05-20 13:05

Re: Dependency issues: cannot install anything

#5 Post by AlexS8 »

Hello,

Thank you for the replies! Here are the requested info:

1. The package that I wanted to install is "zabbix-agent", but I get the same result when I try to install anything (for example net-tools)

2. My source .list
#

# deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 NETINST Binary-1 20160917-14:20]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 NETINST Binary-1 20160917-14:20]/ jessie main

deb http://ftp.belnet.be/debian/ jessie main
deb-src http://ftp.belnet.be/debian/ jessie main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'
deb http://ftp.belnet.be/debian/ jessie-updates main
deb-src http://ftp.belnet.be/debian/ jessie-updates main

3. Post the relevant /var/log/apt/history
I think this may have created the issue - I saw a log about this command:
Commandline: apt-get install sudo
Upgrade: sudo:amd64 (1.8.10p3-1+deb8u3, 1.8.10p3-1+deb8u7)

4.sudo aptitude versions packake
It does not return anything

5.dont tell the boss and run!!! --> priceless :D


Let me know if you need more info

AlexS8
Posts: 6
Joined: 2021-05-20 13:05

Re: Dependency issues: cannot install anything

#6 Post by AlexS8 »

update for sudo aptitude versions package - my bad, I mistyped it:

yet, not sure which one would solve the dependency issue with systemd & libsystemd0

AlexS8
Posts: 6
Joined: 2021-05-20 13:05

Re: Dependency issues: cannot install anything

#7 Post by AlexS8 »

Extra Update - maybe these can help too

# sudo dpkg-query -l (for relevant queries)

ii libpam-systemd:amd64 215-17+deb8u5
ii libsystemd0:amd64 215-17+deb8u13
ii libudev1:amd64 215-17+deb8u13
ii systemd 215-17+deb8u5
ii systemd-sysv 215-17+deb8u7
iF udev 215-17+deb8u13

# apt-cache policy systemd libsystemd0 systemd-sysv libpam-systemd libudev1 udev
systemd:
Installed: 215-17+deb8u5
Candidate: 215-17+deb8u13
libsystemd0:
Installed: 215-17+deb8u13
Candidate: 215-17+deb8u13
systemd-sysv:
Installed: 215-17+deb8u7
Candidate: 215-17+deb8u13
libpam-systemd:
Installed: 215-17+deb8u5
Candidate: 215-17+deb8u13
libudev1:
Installed: 215-17+deb8u13
Candidate: 215-17+deb8u13
udev:
Installed: 215-17+deb8u13
Candidate: 215-17+deb8u13

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Dependency issues: cannot install anything

#8 Post by sunrat »

Debian Jessie repos have been archived so you will need to change your sources if you wish to continue to use Jessie. It would be far preferable to update to Buster.
https://www.debian.org/distrib/archive
https://lists.debian.org/debian-devel-a ... 00006.html
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Dependency issues: cannot install anything

#9 Post by kedaha »

There appears to be some unofficial Extended Long Term Support available for jessie but I very much doubt that zabbix-agent could be installed.
First back up the system, and then upgrade to Debian 9 "stretch" and, as sunrat comments, it will then be preferable to upgrade to Buster, since you can't leapfrog over stretch.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

Post Reply