Debian Bug report logs - #825910
apt upgrade: empty list of unmet dependencies

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: 積丹尼 Dan Jacobson <[email protected]>

Date: Tue, 31 May 2016 08:15:16 UTC

Severity: normal

Tags: moreinfo

Found in version apt/1.3~exp1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], APT Development Team <[email protected]>:
Bug#825897; Package apt. (Tue, 31 May 2016 08:15:19 GMT) (full text, mbox, link).


Acknowledgement sent to 積丹尼 Dan Jacobson <[email protected]>:
New Bug report received and forwarded. Copy sent to APT Development Team <[email protected]>. (Tue, 31 May 2016 08:15:20 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: 積丹尼 Dan Jacobson <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: horrible infinite loop upon apt-get upgrade
Date: Tue, 31 May 2016 15:11:45 +0800
Package: apt
Version: 1.3~exp1
File: /usr/bin/apt-get

In this case apt-get upgrade gets into a horrible infinite loop, needing
a ^Z to stop (^C won't).

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.

What "following packages"? BUG! OK I'll use -f?


# # apt-get -f upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libcamel-1.2-54 libqt4-opengl libqtwebkit4
Use 'apt autoremove' to remove them.
The following packages have been kept back:
  adwaita-icon-theme gnome-icon-theme libebook-contacts-1.2-2 libgtk-3-bin libgtk2.0-0 libgtk2.0-bin
  liblocale-gettext-perl libnetaddr-ip-perl libparams-validate-perl libperl5.22 libpoppler-glib8
  libsocket6-perl libuuid-perl openssl perl perl-base perl-doc perl-modules-5.22 php-gettext poppler-utils
  texinfo
The following packages will be upgraded:
  abiword apache2 apache2-bin apache2-data apache2-utils imagemagick imagemagick-6.q16 info libabiword-3.0
  libapache2-mod-php7.0 libapr1 libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni
  libcamel-1.2-57 libccid libcupsfilters1 libebackend-1.2-10 libebook-1.2-16 libecal-1.2-19
  libedata-book-1.2-25 libedataserver-1.2-21 libgd3 libgtk-3-0 libgtk-3-common libgtk2.0-common libinput-bin
  libinput10 libjavascriptcoregtk-4.0-18 libjs-jquery-cookie libjs-jquery-event-drag libjs-jquery-metadata
  libjs-jquery-mousewheel libjs-jquery-tablesorter libjs-sphinxdoc libnghttp2-14 libpcsclite1 libproj9
  libqt4-dbus libqt4-declarative libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-script
  libqt4-scripttools libqt4-sql libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4
  libqtgui4 libqtwebkit4 libraw15 libscim8v5 libtest-simple-perl libtheora0 libunistring0
  libwebkit2gtk-4.0-37 linux-doc-4.5 locate mplayer pcscd php7.0 php7.0-cli php7.0-common php7.0-json
  php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-readline php7.0-xml phpmyadmin proj-bin proj-data
  python-pyscard python-qt4 qdbus qtchooser qtcore4-l10n resolvconf scim sqlite3-doc ssl-cert w3m
  w3m-el-snapshot xfstt xserver-xorg-input-evdev xserver-xorg-input-synaptics xserver-xorg-video-intel
92 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
1 not fully installed or removed.
Need to get 11.4 MB/94.0 MB of archives.
After this operation, 506 kB disk space will be freed.
Do you want to continue? [Y/n]
Err:1 http://free.nchc.org.tw/debian unstable/main i386 apache2 i386 2.4.20-2
  Temporary failure resolving 'free.nchc.org.tw'
Err:2 http://free.nchc.org.tw/debian unstable/main i386 apache2-bin i386 2.4.20-2
  Temporary failure resolving 'free.nchc.org.tw'

(This is expected, as I am not connected to the network.)

Err:18 http://free.nchc.org.tw/debian unstable/main i386 phpmyadmin all 4:4.6.2-2
  Temporary failure resolving 'free.nchc.org.tw'
Reading changelogs...
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 150543 files and directories currently installed.)
Preparing to unpack .../imagemagick_8%3a6.9.2.10+dfsg-2_all.deb ...
dpkg-query: no packages found matching imagemagick:all
dpkg-query: package 'imagemagick' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'imagemagick' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'imagemagick' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'imagemagick' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'imagemagick' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-query: package 'imagemagick' is not installed

Upon which I must use ^Z to stop the terrible infinite loop.

pstree -al shows:

  ├─dpkg --status-fd 23 --unpack --auto-deconfigure
  /var/cache/apt/archives/imagemagick_8%3a6.9.2.10+dfsg-2_all.deb
  /var/cache/apt/archives/imagemagick-6.q16_8%3a6.9.2.10+dfsg-2+b1_i386.deb
  /var/cache/apt/archives/info_6.1.0.dfsg.1-8_i386.deb
  /var/cache/apt/archives/libapr1_1.5.2-4_i386.deb
  /var/cache/apt/archives/libatk-bridge2.0-0_2.20.1-2_i386.deb
  /var/cache/apt/archives/libatk-wrapper-java_0.33.3-7_all.deb
  /var/cache/apt/archives/libgtk-3-common_3.20.5-4_all.deb
  /var/cache/apt/archives/libgtk-3-0_3.20.5-4_i386.deb
  /var/cache/apt/archives/libatk-wrapper-java-jni_0.33.3-7_i386.deb
  /var/cache/apt/archives/libcamel-1.2-57_3.20.2-2_i386.deb
  /var/cache/apt/archives/libcupsfilters1_1.8.3-2+b2_i386.deb /va
...
    │   └─preinst /var/lib/dpkg/tmp.ci/preinst upgrade 8:6.8.9.9-7+b1 8:6.9.2.10+dfsg-2
  │       └─dpkg-maintscrip /usr/bin/dpkg-maintscript-helper dir_to_symlink /usr/share/doc/imagemagick /usr/share/doc/imagemagick-6-common 8:6.9.2.10+dfsg-2~ -- upgrade 8:6.8.9.9-7+b1 8:6.9.2.10+dfsg-2
  │           └─xargs -0 -n1 sh -c \012\011\011package="$1"\012\011\011file="$2"\012\011\011if ! dpkg-query -L "$package" | grep -F -q -x "$file"; then\012\011\011\011exit 1\012\011\011fi\012\011\011exit 0\012\011 check-files-ownership imagemagick:all
  │               └─sh -c \012\011\011package="$1"\012\011\011file="$2"\012\011\011if ! dpkg-query -L "$package" | grep -F -q -x "$file"; then\012\011\011\011exit 1\012\011\011fi\012\011\011exit 0\012\011 check-files-ownership imagemagick:all /usr/share/doc/imagemagick/www/api/MagickCore/utility-private_8h_source.html
  │                   ├─dpkg-query -L imagemagick:all
  │                   └─grep -F -q -x /usr/share/doc/imagemagick/www/api/MagickCore/utility-private_8h_source.html



-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "false";
APT::Install-Suggests "0";
APT::Sandbox "";
APT::Sandbox::User "_apt";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^linux-image-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^linux-headers-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^linux-headers-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^linux-image-extra-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^linux-image-extra-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^linux-signed-image-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^linux-signed-image-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^kfreebsd-image-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^kfreebsd-image-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^kfreebsd-headers-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^kfreebsd-headers-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^gnumach-image-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^gnumach-image-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^.*-modules-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^.*-modules-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^.*-kernel-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^.*-kernel-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-4\.5\.0-2-686-pae$";
APT::NeverAutoRemove:: "^linux-tools-4\.5\.0-1-686-pae$";
APT::NeverAutoRemove:: "^linux-tools-4\.5\.0-2-686-pae$";
APT::VersionedKernelPackages "";
APT::VersionedKernelPackages:: "linux-image";
APT::VersionedKernelPackages:: "linux-headers";
APT::VersionedKernelPackages:: "linux-image-extra";
APT::VersionedKernelPackages:: "linux-signed-image";
APT::VersionedKernelPackages:: "kfreebsd-image";
APT::VersionedKernelPackages:: "kfreebsd-headers";
APT::VersionedKernelPackages:: "gnumach-image";
APT::VersionedKernelPackages:: ".*-modules";
APT::VersionedKernelPackages:: ".*-kernel";
APT::VersionedKernelPackages:: "linux-backports-modules-.*";
APT::VersionedKernelPackages:: "linux-tools";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "contrib/metapackages";
APT::Never-MarkAuto-Sections:: "non-free/metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Move-Autobit-Sections "";
APT::Move-Autobit-Sections:: "oldlibs";
APT::Move-Autobit-Sections:: "contrib/oldlibs";
APT::Move-Autobit-Sections:: "non-free/oldlibs";
APT::Move-Autobit-Sections:: "restricted/oldlibs";
APT::Move-Autobit-Sections:: "universe/oldlibs";
APT::Move-Autobit-Sections:: "multiverse/oldlibs";
APT::Acquire "";
APT::Acquire::Max-Default-Age "";
APT::Acquire::Max-Default-Age::Debian-Security "7";
APT::Default-Release "experimental";
APT::Cache "";
APT::Cache::AllVersions "false";
APT::Clean-Installed "false";
APT::Get "";
APT::Get::Fix-Missing "true";
APT::Get::Purge "true";
APT::Keep-Downloaded-Packages "true";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i";
APT::Architectures "";
APT::Architectures:: "i386";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "0";
APT::Compressor::lz4 "";
APT::Compressor::lz4::Name "lz4";
APT::Compressor::lz4::Extension ".lz4";
APT::Compressor::lz4::Binary "false";
APT::Compressor::lz4::Cost "50";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "100";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-6n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "200";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "300";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-6";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "400";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-6";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Bin::lz4 "/usr/bin/lz4";
Dir::Bin::lzma "/usr/bin/xz";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Dir::Ignore-Files-Silently:: "\.distUpgrade$";
Acquire "";
Acquire::AllowInsecureRepositories "1";
Acquire::AllowDowngradeToInsecureRepositories "0";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::IndexTargets "";
Acquire::IndexTargets::deb "";
Acquire::IndexTargets::deb::Packages "";
Acquire::IndexTargets::deb::Packages::MetaKey "$(COMPONENT)/binary-$(ARCHITECTURE)/Packages";
Acquire::IndexTargets::deb::Packages::flatMetaKey "Packages";
Acquire::IndexTargets::deb::Packages::ShortDescription "Packages";
Acquire::IndexTargets::deb::Packages::Description "$(RELEASE)/$(COMPONENT) $(ARCHITECTURE) Packages";
Acquire::IndexTargets::deb::Packages::flatDescription "$(RELEASE) Packages";
Acquire::IndexTargets::deb::Packages::Optional "0";
Acquire::IndexTargets::deb::Translations "";
Acquire::IndexTargets::deb::Translations::MetaKey "$(COMPONENT)/i18n/Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::flatMetaKey "$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::ShortDescription "Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::Description "$(RELEASE)/$(COMPONENT) Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::flatDescription "$(RELEASE) Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb-src "";
Acquire::IndexTargets::deb-src::Sources "";
Acquire::IndexTargets::deb-src::Sources::MetaKey "$(COMPONENT)/source/Sources";
Acquire::IndexTargets::deb-src::Sources::flatMetaKey "Sources";
Acquire::IndexTargets::deb-src::Sources::ShortDescription "Sources";
Acquire::IndexTargets::deb-src::Sources::Description "$(RELEASE)/$(COMPONENT) Sources";
Acquire::IndexTargets::deb-src::Sources::flatDescription "$(RELEASE) Sources";
Acquire::IndexTargets::deb-src::Sources::Optional "0";
Acquire::Changelogs "";
Acquire::Changelogs::URI "";
Acquire::Changelogs::URI::Origin "";
Acquire::Changelogs::URI::Origin::Debian "http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog";
Acquire::Changelogs::URI::Origin::Tanglu "http://metadata.tanglu.org/changelogs/@CHANGEPATH@_changelog";
Acquire::Changelogs::URI::Origin::Ubuntu "http://changelogs.ubuntu.com/changelogs/pool/@CHANGEPATH@/changelog";
Acquire::Changelogs::URI::Origin::Ultimedia "http://packages.ultimediaos.com/changelogs/pool/@CHANGEPATH@/changelog.txt";
Acquire::Changelogs::AlwaysOnline "";
Acquire::Changelogs::AlwaysOnline::Origin "";
Acquire::Changelogs::AlwaysOnline::Origin::Ubuntu "1";
Acquire::http "";
Acquire::http::No-Cache "true";
Acquire::PDiffs "true";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
Aptitude "";
Aptitude::CmdLine "";
Aptitude::CmdLine::Always-Prompt "true";
Aptitude::CmdLine::Show-Why "true";
Aptitude::CmdLine::Show-Deps "true";
Aptitude::CmdLine::Verbose "1";
Aptitude::Purge-Unused "true";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -lt 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Tools::Options::/usr/bin/apt-listchanges::InfoFD "20";
Binary "apt-config";
Binary::apt "";
Binary::apt::APT "";
Binary::apt::APT::Color "1";
Binary::apt::APT::Cache "";
Binary::apt::APT::Cache::Show "";
Binary::apt::APT::Cache::Show::Version "2";
Binary::apt::APT::Cache::AllVersions "0";
Binary::apt::APT::Cache::ShowVirtuals "1";
Binary::apt::APT::Cache::Search "";
Binary::apt::APT::Cache::Search::Version "2";
Binary::apt::APT::Cache::ShowDependencyType "1";
Binary::apt::APT::Cache::ShowVersion "1";
Binary::apt::APT::Get "";
Binary::apt::APT::Get::Upgrade-Allow-New "1";
Binary::apt::APT::Cmd "";
Binary::apt::APT::Cmd::Show-Update-Stats "1";
Binary::apt::APT::Keep-Downloaded-Packages "0";
Binary::apt::DPkg "";
Binary::apt::DPkg::Progress-Fancy "1";
Binary::apt::Acquire "";
Binary::apt::Acquire::AllowInsecureRepositories "0";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


-- (no /etc/apt/preferences.d/* present) --


-- (no /etc/apt/sources.list present) --


-- /etc/apt/sources.list.d/jidanni.list --

## Author          : http://jidanni.org/
## Last Modified On: Wed Nov 18 21:46:18 2015
## Update Count    : 121

deb http://mozilla.debian.net/ experimental iceweasel-aurora
#deb http://ftp.cn.debian.org/debian/ experimental main contrib non-free
#deb http://ftp.cn.debian.org/debian/ unstable main contrib non-free

deb http://free.nchc.org.tw/debian/ experimental main contrib non-free
deb http://free.nchc.org.tw/debian/ unstable main contrib non-free

# Carlos Carvalho <[email protected]>
#deb http://ftp.br.debian.org/debian experimental main contrib non-free
#deb http://ftp.br.debian.org/debian unstable main contrib non-free

#deb http://ftp.tw.debian.org/debian experimental main contrib non-free
#deb http://ftp.tw.debian.org/debian unstable main contrib non-free

-- System Information:
Debian Release: stretch/sid
  APT prefers experimental
  APT policy: (990, 'experimental'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 4.5.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages apt depends on:
ii  adduser                 3.114
ii  debian-archive-keyring  2014.3
ii  gpgv                    2.1.12-1
ii  init-system-helpers     1.34
ii  libapt-pkg5.0           1.3~exp1
ii  libc6                   2.23-0experimental2
ii  libgcc1                 1:6.1.1-4
ii  libstdc++6              6.1.1-4

Versions of packages apt recommends:
ii  gnupg   2.1.12-1
ii  gnupg2  2.1.12-1

Versions of packages apt suggests:
ii  apt-doc     1.3~exp1
ii  aptitude    0.8.1-1
ii  dpkg-dev    1.18.7
ii  python-apt  1.1.0~beta2

-- no debconf information



Information forwarded to [email protected], APT Development Team <[email protected]>:
Bug#825897; Package apt. (Tue, 31 May 2016 10:15:13 GMT) (full text, mbox, link).


Acknowledgement sent to David Kalnischkies <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>. (Tue, 31 May 2016 10:15:13 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: David Kalnischkies <[email protected]>
To: 積丹尼 Dan Jacobson <[email protected]>, [email protected]
Cc: [email protected]
Subject: Re: Bug#825897: horrible infinite loop upon apt-get upgrade
Date: Tue, 31 May 2016 12:11:26 +0200
[Message part 1 (text/plain, inline)]
Control: clone -1 -2
Control: reassign -1 dpkg 1.18.7
Control: retitle -1 dpkg-maintscript-helper dir_to_symlink: infinite dpkg-query loop
Control: retitle -2 apt upgrade: empty list of unmet dependencies
Control: tags -2 + moreinfo

(mail relatively lightly trimmed for the benefit of dpkg, see below)

On Tue, May 31, 2016 at 03:11:45PM +0800, 積丹尼 Dan Jacobson wrote:
> # apt-get upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run 'apt-get -f install' to correct these.
> The following packages have unmet dependencies:
> E: Unmet dependencies. Try using -f.
> 
> What "following packages"? BUG! OK I'll use -f?

/var/lib/dpkg/status (or as you seem to have changed your system since
then one of the /var/backups/dpkg.status* reflecting the state of the
system at this moment in time) or it didn't happen as it is impossible
to know what is up otherwise.

(Add here my usual rambling of dpkg.status files including info about
what packages and in which version they are installed, which you might
consider private in which case you can sent it just to me if you want)

[Beware if you answer: The apt portion of this report has a new bugnr!]


> # # apt-get -f upgrade
[… many packages …]
> 92 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
> 1 not fully installed or removed.
> Need to get 11.4 MB/94.0 MB of archives.
> After this operation, 506 kB disk space will be freed.
> Do you want to continue? [Y/n]

Note that the solution displayed here is a lie. You have fix-missing
enabled by default and this mode says it will do all kinds of things but
only after the display, it lists packages it can't deal with, resulting
potentially in an entirely different solution (well, "just" less
packages being upgraded than it claimed to do).  I worked on that very
recently and changed the code to do the action-potential check before
the display, but that isn't uploaded yet (git commit eb1f04dd).


> Err:1 http://free.nchc.org.tw/debian unstable/main i386 apache2 i386 2.4.20-2
>   Temporary failure resolving 'free.nchc.org.tw'
> Err:2 http://free.nchc.org.tw/debian unstable/main i386 apache2-bin i386 2.4.20-2
>   Temporary failure resolving 'free.nchc.org.tw'
> 
> (This is expected, as I am not connected to the network.)

Use --fix-missing --no-download in such cases.

I would strongly advice against setting --fix-missing by default
through. The intend of this mode is really not to be set permanently.


> Preparing to unpack .../imagemagick_8%3a6.9.2.10+dfsg-2_all.deb ...
> dpkg-query: no packages found matching imagemagick:all
> dpkg-query: package 'imagemagick' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'imagemagick' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'imagemagick' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'imagemagick' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'imagemagick' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'imagemagick' is not installed
> 
> Upon which I must use ^Z to stop the terrible infinite loop.
> 
> pstree -al shows:
> 
>   ├─dpkg --status-fd 23 --unpack --auto-deconfigure
>   /var/cache/apt/archives/imagemagick_8%3a6.9.2.10+dfsg-2_all.deb
>   /var/cache/apt/archives/imagemagick-6.q16_8%3a6.9.2.10+dfsg-2+b1_i386.deb
>   /var/cache/apt/archives/info_6.1.0.dfsg.1-8_i386.deb
>   /var/cache/apt/archives/libapr1_1.5.2-4_i386.deb
>   /var/cache/apt/archives/libatk-bridge2.0-0_2.20.1-2_i386.deb
>   /var/cache/apt/archives/libatk-wrapper-java_0.33.3-7_all.deb
>   /var/cache/apt/archives/libgtk-3-common_3.20.5-4_all.deb
>   /var/cache/apt/archives/libgtk-3-0_3.20.5-4_i386.deb
>   /var/cache/apt/archives/libatk-wrapper-java-jni_0.33.3-7_i386.deb
>   /var/cache/apt/archives/libcamel-1.2-57_3.20.2-2_i386.deb
>   /var/cache/apt/archives/libcupsfilters1_1.8.3-2+b2_i386.deb /va
> ...
>     │   └─preinst /var/lib/dpkg/tmp.ci/preinst upgrade 8:6.8.9.9-7+b1 8:6.9.2.10+dfsg-2
>   │       └─dpkg-maintscrip /usr/bin/dpkg-maintscript-helper dir_to_symlink /usr/share/doc/imagemagick /usr/share/doc/imagemagick-6-common 8:6.9.2.10+dfsg-2~ -- upgrade 8:6.8.9.9-7+b1 8:6.9.2.10+dfsg-2
>   │           └─xargs -0 -n1 sh -c \012\011\011package="$1"\012\011\011file="$2"\012\011\011if ! dpkg-query -L "$package" | grep -F -q -x "$file"; then\012\011\011\011exit 1\012\011\011fi\012\011\011exit 0\012\011 check-files-ownership imagemagick:all
>   │               └─sh -c \012\011\011package="$1"\012\011\011file="$2"\012\011\011if ! dpkg-query -L "$package" | grep -F -q -x "$file"; then\012\011\011\011exit 1\012\011\011fi\012\011\011exit 0\012\011 check-files-ownership imagemagick:all /usr/share/doc/imagemagick/www/api/MagickCore/utility-private_8h_source.html
>   │                   ├─dpkg-query -L imagemagick:all
>   │                   └─grep -F -q -x /usr/share/doc/imagemagick/www/api/MagickCore/utility-private_8h_source.html

Well, that looks like a maintainerscript running amok as apt doesn't
call dpkg-query. As that loop seems to be produced by
dpkg-maintscript-helper itself, reassigning to dpkg (and keeping
a clone), but perhaps its also imagemagick calling it wrong as
imagemagick is only newly 'all', it used to be 'any'…


Best regards

David Kalnischkies
[signature.asc (application/pgp-signature, inline)]

Bug 825897 cloned as bug 825910 Request was from David Kalnischkies <[email protected]> to [email protected]. (Tue, 31 May 2016 10:15:13 GMT) (full text, mbox, link).


Changed Bug title to 'apt upgrade: empty list of unmet dependencies' from 'horrible infinite loop upon apt-get upgrade'. Request was from David Kalnischkies <[email protected]> to [email protected]. (Tue, 31 May 2016 10:15:17 GMT) (full text, mbox, link).


Added tag(s) moreinfo. Request was from David Kalnischkies <[email protected]> to [email protected]. (Tue, 31 May 2016 10:15:18 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 07:42:21 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.