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

 

 

 

Installation broken; can't install or update

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Anic297
Posts: 7
Joined: 2016-10-17 14:48

Installation broken; can't install or update

#1 Post by Anic297 »

Hello,

When I try to update my Debian configuration, using “apt-get update”, I get this in the process:
dpkg: error processing package procps (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of udev:
udev depends on procps; however:
Package procps is not configured yet.

dpkg: error processing package udev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of systemd:
systemd depends on udev (>= 208-8); however:
Package udev is not configured yet.

dpkg: error processing package systemd (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Errors were encountered while processing:
procps
udev
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have searched on the Internet, but so far, no answer helped me. Also, please note I'm not an advanced Linux user.
I have the feeling my installation is completely broken and I have no other choice than reinstalling the OS (but I can't as it's a VPS; at least, I don't know how).
Any help welcome.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Installation broken; can't install or update

#2 Post by None1975 »

Hello. Please post your

Code: Select all

 /etc/apt/sources.list
here. I suspect it's a typical FrankenDebian.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Installation broken; can't install or update

#3 Post by bw123 »

That's the first thing I'd check, bad pkg from a non-debian source?

Many pkgs use scripts during install/remove, and they store them and info about themselves in /var/lib/dpkg/info

Sometimes this info can be corrupted during unpacking, and lead to this kind of error. The file mentioned (procps.postinst) should be 3481 bytes, and it is a readable script, no foreign characters in it. Or maybe one of the other procps.* files may be corrupt. This seems to happen on sd-card installations more often. Usually removing the files manually and reinstalling the pkg clears it up.

Code: Select all

$ ls -l /var/lib/dpkg/info/procps.postinst
-rwxr-xr-x 1 root root 3481 May 17  2018 /var/lib/dpkg/info/procps.postinst
resigned by AI ChatGPT

Anic297
Posts: 7
Joined: 2016-10-17 14:48

Re: Installation broken; can't install or update

#4 Post by Anic297 »

Ok, here's the content of the /etc/apt/sources.list list:
deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
deb http://debian.home-dn.net/sarge postfix-vda/

Thanks.

Anic297
Posts: 7
Joined: 2016-10-17 14:48

Re: Installation broken; can't install or update

#5 Post by Anic297 »

Ok, the file I have has a different size:
root@<server>:~# ls -l /var/lib/dpkg/info/procps.postinst
-rwxr-xr-x 1 root root 3439 May 17 2018 /var/lib/dpkg/info/procps.postinst

However, it ends with “exit 0” and 3 blank lines, so it looks good to me (?).

Thanks.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Installation broken; can't install or update

#6 Post by None1975 »

Anic297 wrote:Ok, here's the content of the /etc/apt/sources.list list:
deb http://debian.home-dn.net/sarge postfix-vda/.
That's the culprit. Debian Stable should not be combined with other releases. If you're trying to install software that isn't available in the current Debian Stable release, it's not a good idea to add repositories for other Debian releases. The problems might not happen right away, but the next time you install updates.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Anic297
Posts: 7
Joined: 2016-10-17 14:48

Re: Installation broken; can't install or update

#7 Post by Anic297 »

Ok, good to know.
So I should just remove that line?

Thank you.

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1404
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: Installation broken; can't install or update

#8 Post by None1975 »

Anic297 wrote:So I should just remove that line? Thank you.
You are welcome. It is not so easy. We do not know what packages were installed from http://debian.home-dn.net/sarge postfix-vda/., what dependencies for this packages were installed, and so on. I'm afraid that in this case, you have to completely reinstall your system. In my opinion, this would be the easiest option.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

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

Re: Installation broken; can't install or update

#9 Post by stevepusser »

OP is mostly running Jessie instead of Stretch, so that might lead to the different postinst file size instead of the sarge repo.
MX Linux packager and developer

User avatar
piper
Posts: 102
Joined: 2005-07-03 08:29

Re: Installation broken; can't install or update

#10 Post by piper »

To possibly find out what packages are installed from sarge

Code: Select all

aptitude search ~i -F"%p# %v# %t#"
*might help

They might come up as


Code: Select all

sarge

<NULL>

<NULL>sarge

<NULL>now
I have no experience with stable (desktop and servers)

Anic297
Posts: 7
Joined: 2016-10-17 14:48

Re: Installation broken; can't install or update

#11 Post by Anic297 »

Thanks. Your code results in 1836 lines. I'm guessing it's a dead end… :?

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Installation broken; can't install or update

#12 Post by llivv »

this is a shot in the dark so don't be too optimistic.

please post what happens when
as root

Code: Select all

dpkg -P systemd
    
dpkg --configure -a
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

Anic297
Posts: 7
Joined: 2016-10-17 14:48

Re: Installation broken; can't install or update

#13 Post by Anic297 »

I apologize. In the meantime, I have already reinstalled my server; I should have answered here sooner. Thanks for your idea, though.

Post Reply