unfulfilled dependencies - upgrade/install broken - half installed package

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
aemkai
Level 1
Level 1
Posts: 4
Joined: Tue May 30, 2023 8:48 am

unfulfilled dependencies - upgrade/install broken - half installed package

Post by aemkai »

Hi there,

maybe I can find some advice here. After an "uncoordinated shutdown" I have problems with some broken packages, so now any upgrade or installation attempt fails:
(I translated the outputs, I hope this is ok)

Code: Select all

... Status information is read in... Done
Try "apt --fix-broken install" to fix this.
The following packages have unfulfilled dependencies:
 libkrb5-3 : Depends on: libkrb5support0 (= 1.19.2-2ubuntu0.1) but 1.19.2-2ubuntu0.2 is installed
 libkrb5support0 : Corrupted: libkrb5support0:i386 (!= 1.19.2-2ubuntu0.2) but 1.19.2-2ubuntu0.1 is installed
 libkrb5support0:i386 : Corrupted: libkrb5support0 (!= 1.19.2-2ubuntu0.1) but 1.19.2-2ubuntu0.2 is installed
E: Unfulfilled dependencies. Try "apt --fix-broken install" without specifying a package (or specify a solution).
If I run the fix suggestion, it fails again:

Code: Select all

:~$ sudo apt --fix-broken install
Package lists are read... Done
Dependency tree is built... Done
Status information is read... Done
Dependencies are corrected... Done
The following additional packages are installed:
  libgssapi-krb5-2 libgssapi-krb5-2:i386 libk5crypto3 libk5crypto3:i386 libkrb5-3 libkrb5-3:i386
  libkrb5support0:i386
Proposed packages:
  krb5-doc krb5-user krb5-doc:i386 krb5-user:i386
The following packages are upgraded
  libgssapi-krb5-2 libgssapi-krb5-2:i386 libk5crypto3 libk5crypto3:i386 libkrb5-3 libkrb5-3:i386
  libkrb5support0:i386
7 updated, 0 reinstalled, 0 to remove, and 90 not updated.
8 not fully installed or removed.
0 B of 1,273 kB of archives remain to be downloaded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Read database ... 703410 files and directories are currently installed).
Preparing to unpack .../libkrb5support0_1.19.2-2ubuntu0.2_i386.deb ...
Unpacking libkrb5support0:i386 (1.19.2-2ubuntu0.2) over (1.19.2-2ubuntu0.1) ...
dpkg: Error processing archive /var/cache/apt/archives/libkrb5support0_1.19.2-2ubuntu0.2_i386.deb (--unpack):
 Attempt to overwrite shared "/usr/share/doc/libkrb5support0/changelog.Debian.gz" which is different from other instances of the libkrb5support0:i386 package.
Errors occurred while editing:
 /var/cache/apt/archives/libkrb5support0_1.19.2-2ubuntu0.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
By searching I found the recommendation to dpkg-configure, but it fails with the following message:

Code: Select all

:~$ sudo dpkg --configure -a
dpkg: Error processing package libkrb5support0:amd64 (--configure):
 Package libkrb5support0:amd64 cannot be configured because libkrb5support0:i386 is not ready (current status "half-installed")
Triggers for libc-bin (2.35-0ubuntu3.1) are processed ...
/sbin/ldconfig.real: /lib/libmimalloc.so.2 is not a symbolic link

Errors occurred while editing:
 libkrb5support0:amd64

Another hint to reinstall the package also failed:

Code: Select all

~$ sudo apt install --reinstall libkrb5support0
Package lists are read... Done
Dependency tree is built... Done
Status information is read... Done
Try "apt --fix-broken install" to fix this.
The following packages have unfulfilled dependencies:
 libgssapi-krb5-2:i386 : Depends on: libkrb5support0:i386 (>= 1.15~beta1) but should not be installed
 libk5crypto3:i386 : Depends on: libkrb5support0:i386 (>= 1.16) but should not be installed
 libkrb5-3 : Depends on: libkrb5support0 (= 1.19.2-2ubuntu0.1) but 1.19.2-2ubuntu0.2 should be installed
 libkrb5-3:i386 : Depends on: libkrb5support0:i386 (= 1.19.2-2ubuntu0.1) but should not be installed
E: Unfulfilled dependencies. Try "apt --fix-broken install" without specifying a package (or specify a solution).
An last tip I found and tried was to uninstall the package

Code: Select all

sudo dpkg --force-remove-reinstreq --remove libkrb5support0
That was "successful" in that way it ran clean through without error messages, but after that sudo worked no longer - neither in Terminal nor in the GUI 😮
I was able to restore it in a live session with my timeshift backup, but now I'm back to the state before.

Would be cool if someone has a hint. Thanks!

p.s:
Kernel: 5.15.0-71-generic x86_64
Distributor ID: Linuxmint
Description: Linux Mint 21
Release: 21 Codename: vanessa
Last edited by LockBot on Thu Nov 30, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by sleeper12 »

Can you Timeshift back even more to when things worked?
User avatar
spamegg
Level 14
Level 14
Posts: 5106
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by spamegg »

Code: Select all

dpkg: Error processing archive /var/cache/apt/archives/libkrb5support0_1.19.2-2ubuntu0.2_i386.deb (--unpack):
It might help to clean /var/cache/apt/archives and attempt a reinstall. You can clean it with apt clean.
aemkai
Level 1
Level 1
Posts: 4
Joined: Tue May 30, 2023 8:48 am

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by aemkai »

sleeper12 wrote: Tue May 30, 2023 3:18 pm Can you Timeshift back even more to when things worked?
Yes, I have a backup from before, but this will be my last resort.
If there is no easy way out, than I will use it, but my hope was, that it is only a little thing.
spamegg wrote: Wed May 31, 2023 2:16 am It might help to clean /var/cache/apt/archives and attempt a reinstall. You can clean it with apt clean.
Thanks, I will give it a try, but I'll only get to it this evening.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by Hoser Rob »

You didn't explain exactly what you meant by "uncoordinated shutdown" but it doesn't really sound like a little thing. I'd go for the timeshift restore.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
aemkai
Level 1
Level 1
Posts: 4
Joined: Tue May 30, 2023 8:48 am

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by aemkai »

The apt clean didn't work, so it seems there is no easy way out. Then I'll give the timeshift a try.

"Uncoordinated shutdown" means, the OS was frozen after energy save mode and I had to do a hard shutdown by power button.
aemkai
Level 1
Level 1
Posts: 4
Joined: Tue May 30, 2023 8:48 am

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by aemkai »

short feedback: I recovered it with timeshift, worked flawless
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: unfulfilled dependencies - upgrade/install broken - half installed package

Post by sleeper12 »

👍 Edit your first post & add [SOLVED] to the Subject line.
Locked

Return to “Software & Applications”