[critical] dpkg error while processing - can't install nor upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
High
|
Chengen Du | ||
Jammy |
Fix Released
|
Undecided
|
Chengen Du |
Bug Description
My current ubuntu version :
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy
Issue :
when `sudo apt update` is ok, all newest package is downloaded
but `sudo apt upgrade` show current error : ]
sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
librygel-
The following packages will be upgraded:
bolt code deja-dup enchant-2 fwupd gdm3 gir1.2-gdm-1.0 gir1.2-
gir1.
gstreamer1.
initramfs-
libenchant-2-2 libfwupd2 libfwupdplugin5 libgdm1 libgjs0g libgstreamer-
libgstreamer-
libpkcs11-helper1 libseccomp2 libunistring2 libunistring2:i386 libupower-glib3 media-types nano network-manager
network-
software-
56 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
10 not fully installed or removed.
Need to get 0 B/94,6 MB of archives.
After this operation, 1.928 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up dpkg (1.21.1ubuntu1) ...
head: error reading 'dpkg': Is a directory
dpkg: error processing package dpkg (--configure):
installed dpkg package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
dpkg
E: Sub-process /usr/bin/dpkg returned an error code (1)
i have to resintall all of the package in cache with `sudo dpkg -i /var/cache/
`, but the cache sometimes is not the newest packages
and when i rerun `sudo apt upgrade`, there is still not the newest package
tags: | added: dist-upgrade packaging upgrade-software-version |
Changed in dpkg (Ubuntu): | |
status: | Invalid → New |
Changed in dpkg (Ubuntu): | |
assignee: | nobody → ChengEn, Du (chengendu) |
Changed in dpkg (Ubuntu Jammy): | |
assignee: | nobody → ChengEn, Du (chengendu) |
tags: | added: rls-jj-incoming |
Changed in dpkg (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in dpkg (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
description: | updated |
It seems you have created a directory where a file is supposed to be.
For support on your system, please use askubuntu, the ubuntu forums, the mailing list, or an IRC channel.