This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] Dependency error help [LITE]

quenyan

Thu Aug 13, 2020 2:31:15 am

Help, I cannot update my zorin from the updater. I got some obstacle/error.
Image
Image

Before I got this error, many days before, I fix the minor "dpkg error" (this error shows up when installing app using apt-get but it wont affect the installation), using the github fix script. LINK

not sure if it's fixed or not, but now I see some dependency problem when related to apt-get.

quenyan

Thu Aug 13, 2020 2:34:38 am

quenyan

Thu Aug 13, 2020 2:44:03 am

tried to run this:

Code:
sudo apt-get -f install


result:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
systemd
Suggested packages:
systemd-container
The following packages will be upgraded:
systemd
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 2.914 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu bionic-updates/main amd64 systemd amd64 237-3ubuntu10.42 [2.914 kB]
Fetched 2.914 kB in 9s (335 kB/s)
dpkg: warning: files list file for package 'python3-multibootusb' missing; assuming package has no files currently installed
(Reading database ... 281073 files and directories currently installed.)
Preparing to unpack .../systemd_237-3ubuntu10.42_amd64.deb ...
Unpacking systemd (237-3ubuntu10.42) over (237-3ubuntu10.41) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_237-3ubuntu10.42_amd64.deb (--unpack):
trying to overwrite '/bin/systemctl', which is also in package systemd-sysv 237-3ubuntu10.41
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/systemd_237-3ubuntu10.42_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

quenyan

Thu Aug 13, 2020 5:08:44 am

when trying to uninstall some apps...

Code:
sudo apt-get autoremove geany
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libnss-systemd : Depends: systemd (= 237-3ubuntu10.42)
libpam-systemd : Depends: systemd (= 237-3ubuntu10.42)
systemd : Depends: libsystemd0 (= 237-3ubuntu10.41) but 237-3ubuntu10.42 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Aravisian

Thu Aug 13, 2020 7:22:00 am

What happens if you run
Code:
sudo apt --fix-broken install
?

quenyan

Thu Aug 13, 2020 7:47:46 am

Aravisian wrote:What happens if you run
Code:
sudo apt --fix-broken install
?

the output is exactly the same as "sudo apt-get -f install" output, like the one above.

quenyan

Thu Aug 13, 2020 7:49:21 am

here's the output:
Code:
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  systemd
Suggested packages:
  systemd-container
The following packages will be upgraded:
  systemd
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2.914 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'python3-multibootusb' missing; assuming package has no files currently installed
(Reading database ... 281073 files and directories currently installed.)
Preparing to unpack .../systemd_237-3ubuntu10.42_amd64.deb ...
Unpacking systemd (237-3ubuntu10.42) over (237-3ubuntu10.41) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_237-3ubuntu10.42_amd64.deb (--unpack):
trying to overwrite '/bin/systemctl', which is also in package systemd-sysv 237-3ubuntu10.41
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/systemd_237-3ubuntu10.42_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Aravisian

Thu Aug 13, 2020 9:13:27 am

quenyan wrote:
Aravisian wrote:What happens if you run
Code:
sudo apt --fix-broken install
?

the output is exactly the same as "sudo apt-get -f install" output, like the one above.

I am sorry. I had just woken up and was still groggy.

Ok, this time, I read the whole thread and even comprehended it.
This is what I am seeing: You ran a script in order to "fix" getting notifications on broken dependencies previously. Now you are getting errors.

The BEST WAY to deal with unmet dependencies is to install the missing dependencies. Using a patch to override dependencies outside of dpkg or apt can break things. Which... happened.
On the occasion I run into Unmet Dependencies that the system does not want to install, including if I try a force install (-f install), I copy paste the missing depends and search them in:
https://www.pkgs.org
I find the ones I need for my system as .deb packages. I download the ones I need. Then I open a terminal and
Code:
cd ~/Downloads
and
Code:
sudo dpkg -i <packagename.deb>

Sometimes will try a
Code:
sudo apt --fix-broken install

about one half or three-quarters of the way through and the system will take care of the remaining dependencies. Sometimes that doesn't work- have not gotten the right dependency installed yet, and I just keep going with the .deb files from pkgs.org.
But it pretty much always works.

When missing dependencies, Install the dependencies.

FOr now, you may try the ol'
Code:
sudo apt clean

Code:
sudo apt autoremove

Code:
sudo apt update

Code:
sudo apt upgrade

Code:
sudo apt-get dist-upgrade

And see if you get anywhere. If not, go line by line following that script you used and undo everything it did. Reboot and then try the above five commands again.

quenyan

Fri Aug 14, 2020 1:51:20 am

Aravisian wrote:
quenyan wrote:
Aravisian wrote:What happens if you run
Code:
sudo apt --fix-broken install
?

the output is exactly the same as "sudo apt-get -f install" output, like the one above.

I am sorry. I had just woken up and was still groggy.

Ok, this time, I read the whole thread and even comprehended it.
This is what I am seeing: You ran a script in order to "fix" getting notifications on broken dependencies previously. Now you are getting errors.

The BEST WAY to deal with unmet dependencies is to install the missing dependencies. Using a patch to override dependencies outside of dpkg or apt can break things. Which... happened.
On the occasion I run into Unmet Dependencies that the system does not want to install, including if I try a force install (-f install), I copy paste the missing depends and search them in:
https://www.pkgs.org
I find the ones I need for my system as .deb packages. I download the ones I need. Then I open a terminal and
Code:
cd ~/Downloads
and
Code:
sudo dpkg -i <packagename.deb>

Sometimes will try a
Code:
sudo apt --fix-broken install

about one half or three-quarters of the way through and the system will take care of the remaining dependencies. Sometimes that doesn't work- have not gotten the right dependency installed yet, and I just keep going with the .deb files from pkgs.org.
But it pretty much always works.

When missing dependencies, Install the dependencies.

FOr now, you may try the ol'
Code:
sudo apt clean

Code:
sudo apt autoremove

Code:
sudo apt update

Code:
sudo apt upgrade

Code:
sudo apt-get dist-upgrade

And see if you get anywhere. If not, go line by line following that script you used and undo everything it did. Reboot and then try the above five commands again.


I think something is very wrong with the systemd
Code:
sudo dpkg -i libpam-systemd_237-3ubuntu10_amd64.deb
dpkg: warning: downgrading libpam-systemd:amd64 from 237-3ubuntu10.42 to 237-3ubuntu10
dpkg: warning: files list file for package 'python3-multibootusb' missing; assuming package has no files currently installed
(Reading database ... 281073 files and directories currently installed.)
Preparing to unpack libpam-systemd_237-3ubuntu10_amd64.deb ...
Unpacking libpam-systemd:amd64 (237-3ubuntu10) over (237-3ubuntu10.42) ...
dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
libpam-systemd:amd64 depends on systemd (= 237-3ubuntu10); however:
  Version of systemd on system is 237-3ubuntu10.41.

dpkg: error processing package libpam-systemd:amd64 (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
libpam-systemd:amd64

Aravisian

Fri Aug 14, 2020 2:44:20 am

Could you please run this in terminal and paste back the result:
Code:
dpkg --audit

quenyan

Fri Aug 14, 2020 7:57:39 am

Aravisian wrote:Could you please run this in terminal and paste back the result:
Code:
dpkg --audit

sorry for the late reply, I solved the problem already.
The culprit is something called systemd-sysv, installed version was 10.41, so I tried to grab 10.42 update from https://pkgs.org/
Code:
sudo dpkg -i systemd-sysv_237-3ubuntu10.42_amd64.deb

and....
voila....after installed, rebooted, and zorin is back again.
thanks aravisian for informing me about the pkgs.org :D

Aravisian

Fri Aug 14, 2020 2:40:28 pm

quenyan wrote:
Aravisian wrote:Could you please run this in terminal and paste back the result:
Code:
dpkg --audit

sorry for the late reply, I solved the problem already.
The culprit is something called systemd-sysv, installed version was 10.41, so I tried to grab 10.42 update from https://pkgs.org/
Code:
sudo dpkg -i systemd-sysv_237-3ubuntu10.42_amd64.deb

and....
voila....after installed, rebooted, and zorin is back again.
thanks aravisian for informing me about the pkgs.org :D

Well, you're welcome. :P I guess.
Yes, pkgs.org has saved my backside many times. It is one of the main tools for overcoming Falling Down the Dependency Rabbithole.

Swarfendor437

Fri Aug 14, 2020 3:37:52 pm

And first brought to my attention by Wolfman - but I had forgotten about it prior to his recommendations too! ;) :D