[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#262059: apt-get dist-upgrade unnecessary tries to remove packages



Package: apt
Version: 0.5.26
Severity: normal

apt-get dist-upgrade unnecessary tries to remove packages instead of
keeping them back:

# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
   lyx-common (1.3.4-1 => 1.3.4-2)
   lyx-qt (1.3.4-1 => 1.3.4-2)
   lyx-xforms (1.3.4-1 => 1.3.4-2)
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Ok so far.

# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be REMOVED:
   lyx-qt* (1.3.4-2)
   lyx-xforms* (1.3.4-2)
The following packages have been kept back:
   lyx-common (1.3.4-1 => 1.3.4-2)
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 8049kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

No packages to install/upgrade but nevertheless packages to remove!?
Why does apt not also keep back lyx-qt and lyx-xforms?

I have a mixed testing/unstable installation. The 3 lyx packages
came from unstable. All 3 packages are installed with version 1.3.4-1
as seen above in the apt-get upgrade output and are available for
upgrade with version 1.3.4-2.
Upgrade will be prevented by an unmet dependency:

# apt-get install lyx-xforms
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  lyx-xforms: Depends: libgcc1 (>= 1:3.4.1-3) but 1:3.3.4-3 is to be installed
E: Broken packages
#

apt-get can't upgrade this packages (without installing other packages
from unstable). That's ok. But it should not try to remove the installed
versions of the packages without a need.

Maybe this bug is related to bug #68585. But as this one is tagged
unreproducible I'll try to give you as much information as possible.
I hope there are no pitfalls in my apt configuration. If you need
further details be free to ask.

Regards,

Uwe


# apt-show-versions -a -p lyx-common
lyx-common      1.3.4-1 install ok installed
No testing version
lyx-common      1.3.4-2 unstable
lyx-common/unstable upgradeable from 1.3.4-1 to 1.3.4-2

Similar for lyx-qt and lyx-xforms.

# apt-cache policy lyx-common
lyx-common:
  Installed: 1.3.4-1
  Candidate: 1.3.4-2
  Version Table:
     1.3.4-2 0
        650 http://http.us.debian.org sid/main Packages
 *** 1.3.4-1 0
        100 /var/lib/dpkg/status

Similar for lyx-qt and lyx-xforms.

# apt-cache show lyx-common  [edited]
Package: lyx-common
Version: 1.3.4-2
Depends: lyx-qt | lyx-xforms, perl, python (<< 2.4)
Conflicts: lyx (<< 1.3.4-2), lyx-qt (<< 1.3.4-2), lyx-xforms (<< 1.3.4-2)

Package: lyx-common
Status: install ok installed
Version: 1.3.4-1
Depends: perl, python (<< 2.4)
Conflicts: lyx (<< 1.3.4-1), lyx-qt (<< 1.3.4-1), lyx-xforms (<< 1.3.4-1)

# apt-cache show lyx-xforms  [edited]
Package: lyx-xforms
Version: 1.3.4-2
Depends: lyx-common (= 1.3.4-2), libaiksaurus0c102 (>= 1.0.1), libc6 (>= 2.3.2.ds1-4), libforms1, libgcc1 (>= 1:3.4.1-3), libice6 | xlibs (>> 4.1.0), libjpeg62, libsm6 | xlibs (>> 4.1.0), libstdc++5 (>= 1:3.3.4-1), libx11-6 | xlibs (>> 4.1.0), libxpm4 | xlibs (>> 4.1.0)

Package: lyx-xforms
Status: install ok installed
Version: 1.3.4-1
Depends: lyx-common (= 1.3.4-1), libaiksaurus0c102, libc6 (>= 2.3.2.ds1-4), libforms1, libgcc1 (>= 1:3.3.2-1), libice6 | xlibs (>> 4.1.0), libjpeg62, libsm6 | xlibs (>> 4.1.0), libstdc++5 (>= 1:3.3.2-1), libx11-6 | xlibs (>> 4.1.0), libxpm4 | xlibs (>> 4.1.0)

# apt-cache show lyx-qt  [edited]
Package: lyx-qt
Version: 1.3.4-2
Depends: latex-xft-fonts, lyx-common (= 1.3.4-2), libaiksaurus0c102 (>= 1.0.1), libc6 (>= 2.3.2.ds1-4), libgcc1 (>= 1:3.4.1-3), libice6 | xlibs (>> 4.1.0), libqt3c102-mt (>= 3:3.2.3-3), libsm6 | xlibs (>> 4.1.0), libstdc++5 (>= 1:3.3.4-1), libx11-6 | xlibs (>> 4.1.0)

Package: lyx-qt
Status: install ok installed
Version: 1.3.4-1
Depends: lyx-common (= 1.3.4-1), libaiksaurus0c102, libc6 (>= 2.3.2.ds1-4), libgcc1 (>= 1:3.3.2-1), libice6 | xlibs (>> 4.1.0), libqt3c102-mt (>= 3:3.2.3), libsm6 | xlibs (>> 4.1.0), libstdc++5 (>= 1:3.3.2-1), libx11-6 | xlibs (>> 4.1.0)


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Clean-Installed "false";
APT::Get "";
APT::Get::Fix-Broken "true";
APT::Get::Show-Upgraded "true";
APT::Get::Show-Versions "true";
APT::Get::Purge "true";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
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::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "if dpkg -s apt-listbugs | grep -q '^Status: .* ok installed'; then /usr/sbin/apt-listbugs apt || ( test $? -ne 10 || exit 10; echo 'Warning: apt-listbugs exited abnormally, hit enter key to continue.' 1>&2 ; read a < /dev/tty ); fi";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 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::Post-Invoke "";
DPkg::Post-Invoke:: "debsums --generate=nocheck -sp /var/cache/apt/archives";
Acquire "";
Acquire::http "";
Acquire::http::Proxy "http://http-proxy:8080/";;
Acquire::http::Max-Age "3600";
Acquire::ftp "";
Acquire::ftp::Proxy "ftp://ftp-proxy/";;
Acquire::ftp::ProxyLogin "";
Acquire::ftp::ProxyLogin:: "USER $(SITE_USER)@$(SITE)";
Acquire::ftp::ProxyLogin:: "PASS $(SITE_PASS)";
Acquire::ftp::Timeout "120";
Acquire::ftp::Passive "false";
DSelect "";
DSelect::Clean "never";


-- /etc/apt/preferences --

Package: *
Pin: release a=testing,o=Debian,l=Debian-Security
Pin-Priority: 750

Package: *
Pin: release a=testing,o=Debian,l=Debian
Pin-Priority: 750

Package: *
Pin: release a=unstable,o=Debian,l=Debian
Pin-Priority: 650


-- /etc/apt/sources.list --

# --- Sarge --------------------------------------------------------------------

deb http://http.us.debian.org/debian sarge main contrib non-free

# Non-us
deb http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free

# Security Updates
deb http://security.debian.org/debian-security sarge/updates main contrib non-free

# --- Sid ----------------------------------------------------------------------

deb http://http.us.debian.org/debian sid main contrib non-free

# Non-us
deb http://non-us.debian.org/debian-non-US sid/non-US main contrib non-free


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (750, 'testing'), (650, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=C, LC_CTYPE=C

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.4-3    GCC support library
ii  libstdc++5                  1:3.3.4-3    The GNU Standard C++ Library v3

-- no debconf information



Reply to: