Your message dated Tue, 31 May 2016 13:55:37 +0200
with message-id <[email protected]>
and subject line Re: Bug#825918: dpkg enters infinite loop upon installing some 
packages
has caused the Debian Bug report #825918,
regarding dpkg-maintscript-helper dir_to_symlink: infinite dpkg-query loop
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
825918: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825918
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Control: severity -1 minor

On Tue, 2016-05-31 at 19:15:54 +0800, 積丹尼 Dan Jacobson wrote:
> Package: dpkg
> Version: 1.18.7
> Severity: grave

This is definitely not grave, even if there was an infinite loop
involved.

> Please try installing this version of imagemagick.

> Dpkg will enter an infinite loop.

I did, and I don't see any infinite loop:

,---
(Reading database ... 144327 files and directories currently installed.)
Preparing to unpack .../libmagickwand-6.q16-2_8%3a6.9.2.10+dfsg-2+b1_amd64.deb 
...
Unpacking libmagickwand-6.q16-2:amd64 (8:6.9.2.10+dfsg-2+b1) over 
(8:6.8.9.9-7+b2) ...
Preparing to unpack .../libmagickcore-6.q16-2_8%3a6.9.2.10+dfsg-2+b1_amd64.deb 
...
Unpacking libmagickcore-6.q16-2:amd64 (8:6.9.2.10+dfsg-2+b1) over 
(8:6.8.9.9-7+b2) ...
Processing triggers for libc-bin (2.22-9) ...
(Reading database ... 144334 files and directories currently installed.)
Removing imagemagick-common (8:6.8.9.9-7) ...
Purging configuration files for imagemagick-common (8:6.8.9.9-7) ...
Selecting previously unselected package imagemagick-6-common.
(Reading database ... 144312 files and directories currently installed.)
Preparing to unpack .../imagemagick-6-common_8%3a6.9.2.10+dfsg-2_all.deb ...
Unpacking imagemagick-6-common (8:6.9.2.10+dfsg-2) ...
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
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
dpkg-maintscript-helper: error: directory '/usr/share/doc/imagemagick' contains 
files not owned by package imagemagick:all, cannot switch to symlink
dpkg: error processing archive 
/var/cache/apt/archives/imagemagick_8%3a6.9.2.10+dfsg-2_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Preparing to unpack .../imagemagick-6.q16_8%3a6.9.2.10+dfsg-2+b1_amd64.deb ...
Unpacking imagemagick-6.q16 (8:6.9.2.10+dfsg-2+b1) over (8:6.8.9.9-7+b2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/imagemagick_8%3a6.9.2.10+dfsg-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
`---

> # dpkg -i imagemagick_8%3a6.9.2.10+dfsg-2_all.deb
> Selecting previously unselected package imagemagick.
> (Reading database ... 148492 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.
> ...
> 
> As you can guess this pretty much ruins it for installing any other
> package with apt, as they will get stuck trying to configure this first.

I think you just were too quick to abort the installation, please
before concluding that something is an infinite loop, wait for several
screenfuls of output. In this case the output is confusing and might
make it look like that, but it's checking for different files.
Although I could perhaps silence the output, that would make it more
difficult to detect wrong usage. Instead I'm closing this non-bug, and
hope to fix the root cause when handling the automatic arch-qualification.

Regards,
Guillem

--- End Message ---

Reply via email to