Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

When Upgrading

Started by Ze_Mind, June 22, 2024, 03:42:26 AM

Previous topic - Next topic

Ze_Mind

I ran a update and upgrade, and I get this nasty fellow. And I try to fix it, but, umm..

mind@mind-system:~$ sudo apt upgrade
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 libavif16 : Depends: libsvtav1enc1d1 (>= 1.7.0+dfsg) but it is not installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
mind@mind-system:~$ sudo apt --fix-broken install
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libcbor0.8          libjavascriptcoregtk-4.1-0  libllvm15     libwebkit2gtk-4.1-0
  libgupnp-igd-1.0-4  libjim0.81                  libunibreak5
Use 'sudo apt autoremove' to remove them.

Installing dependencies:
  libsvtav1enc1d1

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 698
  2 not fully installed or removed.
  Download size: 2,169 kB
  Space needed: 6,918 kB / 849 GB available

Continue? [Y/n] y
Get:1 http://deb.debian.org/debian trixie/main amd64 libsvtav1enc1d1 amd64 1.7.0+dfsg-2+b1 [2,169 kB]
Fetched 2,169 kB in 0s (9,146 kB/s)       
(Reading database ... 203752 files and directories currently installed.)
Preparing to unpack .../libsvtav1enc1d1_1.7.0+dfsg-2+b1_amd64.deb ...
Unpacking libsvtav1enc1d1:amd64 (1.7.0+dfsg-2+b1) ...
dpkg: error processing archive /var/cache/apt/archives/libsvtav1enc1d1_1.7.0+dfsg-2+b1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libSvtAv1Enc.so.1', which is also in package libsvtav1enc1:amd64 2:1.6.0-dmo1
Errors were encountered while processing:
 /var/cache/apt/archives/libsvtav1enc1d1_1.7.0+dfsg-2+b1_amd64.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)

msseufert

I signed up just to answer this.

This is an upstream issue from Sparky's perspective. The issue is with Debian testing/Trixie, which it appears Sparky or yourself are using. This issue, however, is resolved in Debian Sid so it's already fixed from an upstream perspective and options currently are to wait for Debian to backport the fix from Sid to Trixie or perhaps the Sparky devs can do that sooner.

penguin

#2
Same today

sudo apt upgrade
The following package was automatically installed and is no longer required:
  libplacebo338
Use 'sudo apt autoremove' to remove it.

Upgrading:
  apt                        libdrm-intel1                  libwayland-server0
  apt-utils                  libdrm-nouveau2                libwbclient0
  cmus                      libdrm-radeon1                mixxx
  cmus-plugin-ffmpeg        libdrm2                        network-manager
  cups-browsed              libdynaloader-functions-perl  openjdk-17-jdk
  cups-filters              libfontembed1t64              openjdk-17-jdk-headless
  cups-filters-core-drivers  libgroupsock30                openjdk-17-jre
  dpkg                      libgstreamer-plugins-bad1.0-0  openjdk-17-jre-headless
  dpkg-dev                  libgstreamer1.0-0              openssh-client
  firefox-sparky            libhtml-parser-perl            pdf2djvu
  gir1.2-gstreamer-1.0      libimobiledevice-glue-1.0-0    python3-charset-normalizer
  gir1.2-nm-1.0              libjs-sphinxdoc                python3-ldb
  gstreamer1.0-plugins-bad  libldb2                        python3-pyasn
  gstreamer1.0-tools        liblivemedia112                python3-samba
  gvfs                      libmpv2                        python3-six
  gvfs-backends              libnm0                        python3-traitlets
  gvfs-common                libpostproc57                  qtwayland5
  gvfs-daemons              libqt5waylandclient5          samba
  gvfs-libs                  libqt5waylandcompositor5      samba-common
  libapt-pkg6.0t64          libsdl2-2.0-0                  samba-common-bin
  libavcodec60              libsdl2-dev                    samba-libs
  libavdevice60              libsmbclient0                  samba-vfs-modules
  libavfilter9              libssh2-1t64                  smbclient
  libavformat60              libswresample4                sparky-about
  libavutil58                libswscale7                    sparky-usb-imager
  libbasicusageenvironment2  libthunarx-3-0                ssl-cert
  libcupsfilters1t64        libusageenvironment3          thunar
  libde265-0                libwayland-bin                thunar-data
  libdpkg-perl              libwayland-client0            unpaper
  libdrm-amdgpu1            libwayland-cursor0            yt-dlp
  libdrm-common              libwayland-dev
  libdrm-dev                libwayland-egl1

Not upgrading:
  inkscape  lib2geom1.2.0t64  libgslcblas0

REMOVING:
  linux-image-6.9.9-amd64

Summary:
  Upgrading: 94, Installing: 0, Removing: 1, Not Upgrading: 3
  2 not fully installed or removed.
  Download size: 358 MB
  Freed space: 101 MB

Continue? [Y/n] y

Y


.....

dpkg: error processing package linux-image-6.9.9-amd64 (--remove):
installed linux-image-6.9.9-amd64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-6.9.9-amd64
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)

How to solve ?

penguin

#3
Quote from: penguin on August 06, 2024, 09:31:50 PMSame today

sudo apt upgrade
The following package was automatically installed and is no longer required:
  libplacebo338
Use 'sudo apt autoremove' to remove it.

Upgrading:
  apt                        libdrm-intel1                  libwayland-server0
  apt-utils                  libdrm-nouveau2                libwbclient0
  cmus                      libdrm-radeon1                mixxx
  cmus-plugin-ffmpeg        libdrm2                        network-manager
  cups-browsed              libdynaloader-functions-perl  openjdk-17-jdk
  cups-filters              libfontembed1t64              openjdk-17-jdk-headless
  cups-filters-core-drivers  libgroupsock30                openjdk-17-jre
  dpkg                      libgstreamer-plugins-bad1.0-0  openjdk-17-jre-headless
  dpkg-dev                  libgstreamer1.0-0              openssh-client
  firefox-sparky            libhtml-parser-perl            pdf2djvu
  gir1.2-gstreamer-1.0      libimobiledevice-glue-1.0-0    python3-charset-normalizer
  gir1.2-nm-1.0              libjs-sphinxdoc                python3-ldb
  gstreamer1.0-plugins-bad  libldb2                        python3-pyasn
  gstreamer1.0-tools        liblivemedia112                python3-samba
  gvfs                      libmpv2                        python3-six
  gvfs-backends              libnm0                        python3-traitlets
  gvfs-common                libpostproc57                  qtwayland5
  gvfs-daemons              libqt5waylandclient5          samba
  gvfs-libs                  libqt5waylandcompositor5      samba-common
  libapt-pkg6.0t64          libsdl2-2.0-0                  samba-common-bin
  libavcodec60              libsdl2-dev                    samba-libs
  libavdevice60              libsmbclient0                  samba-vfs-modules
  libavfilter9              libssh2-1t64                  smbclient
  libavformat60              libswresample4                sparky-about
  libavutil58                libswscale7                    sparky-usb-imager
  libbasicusageenvironment2  libthunarx-3-0                ssl-cert
  libcupsfilters1t64        libusageenvironment3          thunar
  libde265-0                libwayland-bin                thunar-data
  libdpkg-perl              libwayland-client0            unpaper
  libdrm-amdgpu1            libwayland-cursor0            yt-dlp
  libdrm-common              libwayland-dev
  libdrm-dev                libwayland-egl1

Not upgrading:
  inkscape  lib2geom1.2.0t64  libgslcblas0

REMOVING:
  linux-image-6.9.9-amd64

Summary:
  Upgrading: 94, Installing: 0, Removing: 1, Not Upgrading: 3
  2 not fully installed or removed.
  Download size: 358 MB
  Freed space: 101 MB

Continue? [Y/n] y

Y


.....

dpkg: error processing package linux-image-6.9.9-amd64 (--remove):
installed linux-image-6.9.9-amd64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-6.9.9-amd64
Processing was halted because there were too many errors.
Error: Sub-process /usr/bin/dpkg returned an error code (1)

How to solve ?


I found a temporary solution to my problem

https://askubuntu.com/questions/203543/cant-remove-kernels-run-parts-etc-kernel-postrm-d-zz-update-grub-exited-with

+++++++++++
Option 2: If the above doesn't work:

Try renaming the grub script so it is bypassed. It isn't a long term solution but you may be able to run your updates.

sudo mv /etc/kernel/postrm.d/zz-update-grub /etc/kernel/postrm.d/zz-update-grub.bad
++++++++++++

Update done also linux-image-6.9.9-amd64 and linux-image-6.9.12-amd64 are removed.

I turned back the "bad script"

sudo mv /etc/kernel/postrm.d/zz-update-grub.bad /etc/kernel/postrm.d/zz-update-grub

I am trying  now to go further and solve some other problems ( related to the follow lines )

Found Linux Mint 21.3 Virginia (21.3) on /dev/sda8
Adding boot menu entry for UEFI Firmware Settings ...
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 602
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have Linux Mint 21.3 Virginia (21.3) on /dev/sda8 but installed not in UEFI way ...

++++++++++++++
For grub-pc error problems seems that

https://askubuntu.com/questions/1316355/installed-grub-pc-package-post-installation-script-subprocess-returned-error-exi
and especially the follow suggestion

+++++++++++

Only solutions which I found it's remove .postinst files from /var/lib/dpkg/info/ for problematic packages. e.g. grub-pc.postinst file

++++++++++

helps


View the most recent posts on the forum