Change priority 1000 for /var/lib/dpkg/status
https://askubuntu.com/questions/1563165/change-priority-1000-for-var-lib-dpkg-status
After a complete re-install of my Kubuntu from the official ISO image on a USB drive on Monday, every(!) package has a priority like this:
$ sudo apt-cache policy apt
apt:
Installiert: 3.1.6ubuntu2
Installationskandidat: 3.1.6ubuntu2
Versionstabelle:
*** 3.1.6ubuntu2 1000
500 http://de.archive.ubuntu.com/ubuntu questing/main amd64 Packages
1000 /var/lib/dpkg/status
with the result that I cannot update my system.
Is there any way to "reduce" the priority of the /var/lib/dpkg/status to the "regular" value of 100 so that I can keep my system up-to-date?
Some more info, in case that helps to pin-point the problem:
$ sudo apt-cache policy
Paketdateien:
1000 /var/lib/dpkg/status
release a=now
500 https://dl.winehq.org/wine-builds/ubuntu questing/main amd64 Packages
release o=dl.winehq.org,a=questing,n=questing,l=winehq,c=main,b=amd64
origin dl.winehq.org
500 http://security.ubuntu.com/ubuntu questing-security/multiverse amd64 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=multiverse,b=amd64
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu questing-security/restricted i386 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=restricted,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu questing-security/restricted amd64 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=restricted,b=amd64
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu questing-security/universe i386 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=universe,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu questing-security/universe amd64 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=universe,b=amd64
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu questing-security/main i386 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=main,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu questing-security/main amd64 Packages
release v=25.10,o=Ubuntu,a=questing-security,n=questing,l=Ubuntu,c=main,b=amd64
origin security.ubuntu.com
100 http://de.archive.ubuntu.com/ubuntu questing-backports/universe i386 Packages
release v=25.10,o=Ubuntu,a=questing-backports,n=questing,l=Ubuntu,c=universe,b=i386
origin de.archive.ubuntu.com
100 http://de.archive.ubuntu.com/ubuntu questing-backports/universe amd64 Packages
release v=25.10,o=Ubuntu,a=questing-backports,n=questing,l=Ubuntu,c=universe,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/multiverse i386 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=multiverse,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/multiverse amd64 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=multiverse,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/restricted i386 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=restricted,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/restricted amd64 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=restricted,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/universe i386 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=universe,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/universe amd64 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=universe,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/main i386 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=main,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing-updates/main amd64 Packages
release v=25.10,o=Ubuntu,a=questing-updates,n=questing,l=Ubuntu,c=main,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/multiverse i386 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=multiverse,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/multiverse amd64 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=multiverse,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/restricted i386 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=restricted,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/restricted amd64 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=restricted,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/universe i386 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=universe,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/universe amd64 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=universe,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/main i386 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=main,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu questing/main amd64 Packages
release v=25.10,o=Ubuntu,a=questing,n=questing,l=Ubuntu,c=main,b=amd64
origin de.archive.ubuntu.com
500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu plucky/main i386 Packages
release v=25.04,o=LP-PPA-mozillateam,a=plucky,n=plucky,l=Firefox ESR and Thunderbird stable builds,c=main,b=i386
origin ppa.launchpadcontent.net
500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu plucky/main amd64 Packages
release v=25.04,o=LP-PPA-mozillateam,a=plucky,n=plucky,l=Firefox ESR and Thunderbird stable builds,c=main,b=amd64
origin ppa.launchpadcontent.net
1000 https://packages.mozilla.org/apt mozilla/main all Packages
release o=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,a=mozilla,n=mozilla,l=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,c=main,b=all
origin packages.mozilla.org
1000 https://packages.mozilla.org/apt mozilla/main i386 Packages
release o=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,a=mozilla,n=mozilla,l=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,c=main,b=i386
origin packages.mozilla.org
1000 https://packages.mozilla.org/apt mozilla/main amd64 Packages
release o=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,a=mozilla,n=mozilla,l=namespaces/moz-fx-productdelivery-pr-38b5/repositories/mozilla,c=main,b=amd64
origin packages.mozilla.org
Mit Pinning verwaltete Pakete:
firefox-locale-af -> 1:1snap1-0ubuntu7 mit Priorität -1
thunderbird-locale-nb-no -> 2:1snap1-0ubuntu3 mit Priorität -1
firefox-locale-zh-hans -> 1:1snap1-0ubuntu7 mit Priorität -1
firefox-locale-zh-hant -> 1:1snap1-0ubuntu7 mit Priorität -1
thunderbird-locale-ta-lk -> 2:1snap1-0ubuntu3 mit Priorität -1
((other thunderbird and firefox packages omitted for character limits))
$ for i in `{ls /etc/apt/preferences.d/*}` ; do echo "\n\n${i}" ; cat ${i} ; done
/etc/apt/preferences.d/mozilla
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
Package: *
Pin: release 0=LP-PPA-mozillateam
Pin-Priority: 1000
Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1
Package: thunderbird*
Pin: release o=Ubuntu
Pin-Priority: -1
/etc/apt/preferences.d/ubuntu-pro-esm-apps
# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
# package. It has no effect if Ubuntu Pro services are not in use since no
# other apt repositories are expected to match o=UbuntuESMApps.
#
# Pin esm-apps packages to a slightly higher value than the default,
# so those are preferred over a non-ESM package from the archive when the
# service is enabled.
Package: *
Pin: release o=UbuntuESMApps
Pin-Priority: 510
/etc/apt/preferences.d/ubuntu-pro-esm-infra
# This file is used by Ubuntu Pro and supplied by the ubuntu-pro-client
# package. It has no effect if Ubuntu Pro services are not in use since no
# other apt repositories are expected to match o=UbuntuESM.
#
# Pin esm-infra packages to a slightly higher value than the default,
# so those are preferred over a non-ESM package from the archive when the
# service is enabled.
Package: *
Pin: release o=UbuntuESM
Pin-Priority: 510
$ for i in `{ls /etc/apt//apt.conf.d/*}` ; do echo "\n\n${i}" ; cat ${i} ; done
/etc/apt//apt.conf.d/01-vendor-ubuntu
Acquire::Changelogs::AlwaysOnline "true";
Acquire::http::User-Agent-Non-Interactive "true";
// Enable the new solver by default for our commands
binary::apt::APT::Solver "3.0";
binary::apt-get::APT::Solver "3.0";
// Allow to remove manually installed packages for the
// first phase.
APT::Solver::RemoveManual "true";
/etc/apt//apt.conf.d/01autoremove
APT
{
NeverAutoRemove
{
"^firmware-linux.*";
"^linux-firmware$";
"^linux-image-[a-z0-9]*$";
"^linux-image-[a-z0-9]*-[a-z0-9]*$";
};
VersionedKernelPackages
{
# kernels
"linux-.*";
"kfreebsd-.*";
"gnumach-.*";
# (out-of-tree) modules
".*-modules";
".*-kernel";
};
Never-MarkAuto-Sections
{
"metapackages";
"tasks";
};
Move-Autobit-Sections
{
"oldlibs";
};
};
/etc/apt//apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
/etc/apt//apt.conf.d/15update-stamp
APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
/etc/apt//apt.conf.d/20apt-esm-hook.conf
APT::Update::Pre-Invoke {
"[ ! -e /run/systemd/system ] || [ $(id -u) -ne 0 ] || systemctl start --no-block apt-news.service esm-cache.service >/dev/null 2>&1 || true";
};
binary::apt::AptCli::Hooks::Upgrade {
"[ ! -f /usr/lib/ubuntu-advantage/apt-esm-json-hook ] || [ $(id -u) -ne 0 ] || /usr/lib/ubuntu-advantage/apt-esm-json-hook 2>> /var/log/ubuntu-advantage-apt-hook.log || true";
};
/etc/apt//apt.conf.d/20archive
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
/etc/apt//apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
/etc/apt//apt.conf.d/20packagekit
// THIS FILE IS USED TO INFORM PACKAGEKIT THAT THE UPDATE-INFO MIGHT HAVE CHANGED
// Whenever dpkg is called we might have different updates
// i.e. if an user removes a package that had an update
DPkg::Post-Invoke {
"/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/test ! -e /run/ostree-booted && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
};
// When APT's cache is updated (i.e. apt-cache update)
APT::Update::Post-Invoke-Success {
"/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/test ! -e /run/ostree-booted && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
};
/etc/apt//apt.conf.d/20snapd.conf
binary::apt::AptCli::Hooks::Install { "[ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true"; };
/etc/apt//apt.conf.d/50appstream
## This file is provided by appstreamcli(1) to download DEP-11
## metadata files.
Acquire::IndexTargets {
# The YAML metadata files
deb::DEP-11 {
MetaKey "$(COMPONENT)/dep11/Components-$(NATIVE_ARCHITECTURE).yml";
ShortDescription "Components-$(NATIVE_ARCHITECTURE)";
Description "$(RELEASE)/$(COMPONENT) $(NATIVE_ARCHITECTURE) Components";
KeepCompressed "true";
KeepCompressedAs "gz";
};
# Small icons for GUI components described in the DEP-11
# YAML metadata.
deb::DEP-11-icons-small {
MetaKey "$(COMPONENT)/dep11/icons-48x48.tar";
ShortDescription "icons-48x48";
Description "$(RELEASE)/$(COMPONENT) Icons (48x48)";
KeepCompressed "true";
KeepCompressedAs "gz";
DefaultEnabled "false";
};
# Normal-sized icons for GUI components described in the DEP-11
# YAML metadata.
deb::DEP-11-icons {
MetaKey "$(COMPONENT)/dep11/icons-64x64.tar";
ShortDescription "icons-64x64";
Description "$(RELEASE)/$(COMPONENT) Icons (64x64)";
KeepCompressed "true";
KeepCompressedAs "gz";
DefaultEnabled "false";
};
# Icons suitable for HiDPI displays, for GUI components described in
# the DEP-11 YAML metadata.
deb::DEP-11-icons-hidpi {
MetaKey "$(COMPONENT)/dep11/icons-64x64@2.tar";
ShortDescription "icons-64x64@2";
Description "$(RELEASE)/$(COMPONENT) Icons (64x64@2)";
KeepCompressed "true";
KeepCompressedAs "gz";
DefaultEnabled "false";
};
# Larger icons that are often used on HiDPI displays as fallback.
deb::DEP-11-icons-large {
MetaKey "$(COMPONENT)/dep11/icons-128x128.tar";
ShortDescription "icons-128x128";
Description "$(RELEASE)/$(COMPONENT) Icons (128x128)";
KeepCompressed "true";
KeepCompressedAs "gz";
DefaultEnabled "false";
};
# Even larger icons that are used on HiDPI displays.
deb::DEP-11-icons-large-hidpi {
MetaKey "$(COMPONENT)/dep11/icons-128x128@2.tar";
ShortDescription "icons-128x128@2";
Description "$(RELEASE)/$(COMPONENT) Icons (128x128@2)";
KeepCompressed "true";
KeepCompressedAs "gz";
DefaultEnabled "false";
};
};
# Refresh AppStream cache when APT's cache is updated (i.e. apt update)
APT::Update::Post-Invoke-Success {
"if /usr/bin/test -w /var/cache/swcatalog -a -e /usr/bin/appstreamcli; then appstreamcli refresh --source=os > /dev/null || true; fi";
};
/etc/apt//apt.conf.d/50command-not-found
## This file is provided by command-not-found(1) to download
## Commands metadata files.
Acquire::IndexTargets {
# The deb822 metadata files
deb::CNF {
MetaKey "$(COMPONENT)/cnf/Commands-$(NATIVE_ARCHITECTURE)";
ShortDescription "Commands-$(NATIVE_ARCHITECTURE)";
Description "$(RELEASE)/$(COMPONENT) $(NATIVE_ARCHITECTURE) c-n-f Metadata";
};
};
# Refresh AppStream cache when APT's cache is updated (i.e. apt update)
APT::Update::Post-Invoke-Success {
"if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi";
};
/etc/apt//apt.conf.d/50unattended-upgrades
// Automatically upgrade packages from these (origin:archive) pairs
//
// Note that in Ubuntu security updates may pull in new dependencies
// from non-security sources (e.g. chromium). By allowing the release
// pocket these get automatically pulled in.
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
// Extended Security Maintenance; doesn't necessarily exist for
// every release and this system may not have it installed, but if
// available, the policy for updates is such that unattended-upgrades
// should also install from here by default.
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
// Python regular expressions, matching packages to exclude from upgrading
Unattended-Upgrade::Package-Blacklist {
// The following matches all packages starting with linux-
// "linux-";
// Use $ to explicitely define the end of a package name. Without
// the $, "libc6" would match all of them.
// "libc6$";
// "libc6-dev$";
// "libc6-i686$";
// Special characters need escaping
// "libstdc\+\+6$";
// The following matches packages like xen-system-amd64, xen-utils-4.1,
// xenstore-utils and libxenstore3.0
// "(lib)?xen(store)?";
// For more information about Python regular expressions, see
// https://docs.python.org/3/howto/regex.html
};
// This option controls whether the development release of Ubuntu will be
// upgraded automatically. Valid values are "true", "false", and "auto".
Unattended-Upgrade::DevRelease "auto";
((commented lines omitted for char limits))
/etc/apt//apt.conf.d/60icons
## This file enables the download of small-size 64x64px
## icons for use in software centers like GNOME Software
## and Plasma Discover.
##
## The icons are required for software centers to function
## correctly. Applications without an icon will not be
## displayed at all.
Acquire::IndexTargets {
deb::DEP-11-icons-small {
DefaultEnabled "true";
};
deb::DEP-11-icons {
DefaultEnabled "true";
};
};
/etc/apt//apt.conf.d/60icons-hidpi
## This file enables the download of 64x64px icons
## suitable for HiDPI displays for use in software
## centers like GNOME Software and Plasma Discover.
Acquire::IndexTargets {
deb::DEP-11-icons-hidpi {
DefaultEnabled "true";
};
};
/etc/apt//apt.conf.d/60icons-large
## This file enables the download of large 128x128px
## icons for use in software centers like GNOME Software
## and Plasma Discover.
##
## The icons speed up usage of the software centers,
## and would otherwise be downloaded on-deman for each user.
Acquire::IndexTargets {
deb::DEP-11-icons-large {
DefaultEnabled "true";
};
};
/etc/apt//apt.conf.d/60icons-large-hidpi
## This file enables the download of 128x128px icons
## suitable for HiDPI displays for use in software
## centers like GNOME Software and Plasma Discover.
Acquire::IndexTargets {
deb::DEP-11-icons-hidpi {
DefaultEnabled "true";
};
};
/etc/apt//apt.conf.d/70debconf
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
/etc/apt//apt.conf.d/99update-notifier
DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; /usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";};
APT::Update::Post-Invoke-Success {"/usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";};