failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (2 No such file or directory)

Bug #25088 reported by Debian Bug Importer
14
Affects Status Importance Assigned to Milestone
aptitude (Debian)
Fix Released
Unknown
aptitude (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Automatically imported from Debian bug report #337869 http://bugs.debian.org/337869

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #337869 http://bugs.debian.org/337869

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 6 Nov 2005 18:25:53 -0500
From: Joey Hess <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old -
 save_selection_list (2 No such file or directory)

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: aptitude
Version: 0.4.0-2
Severity: grave
Tags: d-i
Justification: breaks installer

All installations of unstable now end as follows:

Need to get 23.3MB of archives. After unpacking 87.5MB will be used.
Writing extended state information... Error!
E: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgsta=
tes.old - save_selection_list (2 No such file or directory)
tasksel: aptitude failed

This occurs when tasksel runs aptitude to install the selected task(s).

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27
Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8)

Versions of packages aptitude depends on:
ii apt [libapt-pkg-libc6.3-6-3.1 0.6.42.2 Advanced front-end for dpkg
ii libc6 2.3.5-7 GNU C Library: Shared librarie=
s an
ii libgcc1 1:4.0.2-3 GCC support library
ii libncursesw5 5.5-1 Shared libraries for terminal =
hand
ii libsigc++-2.0-0c2 2.0.16-1 type-safe Signal Framework for=
 C++
ii libstdc++6 4.0.2-3 The GNU Standard C++ Library v3

Versions of packages aptitude recommends:
pn aptitude-doc-en | aptitude-do <none> (no description available)

-- no debconf information

--=20
see shy jo

--vtzGhvizbBRQ85DL
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDbpEAd8HHehbQuO8RAtk4AJ90QrAJqBI+aJ0Hgt024jHAbYo3vQCgyU4O
3tYeGw/SbJUpQwm0YDq3HOI=
=sd5a
-----END PGP SIGNATURE-----

--vtzGhvizbBRQ85DL--

Revision history for this message
In , Daniel Burrows (dburrows) wrote : Re: Bug#337869: failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (2 No such file or directory)

  The fix is just to ignore ENOENT from the link() in save_selection_list().

  Patch attached.

  Daniel

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 7 Nov 2005 14:58:38 -0800
From: Daniel Burrows <email address hidden>
To: Joey Hess <email address hidden>, <email address hidden>
Subject: Re: Bug#337869: failed to rename /var/lib/aptitude/pkgstates to
 /var/lib/aptitude/pkgstates.old - save_selection_list (2 No such file or directory)

--RYJh/3oyKhIjGcML
Content-Type: multipart/mixed; boundary="S1BNGpv0yoYahz37"
Content-Disposition: inline

--S1BNGpv0yoYahz37
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

  The fix is just to ignore ENOENT from the link() in save_selection_list().

  Patch attached.

  Daniel

--S1BNGpv0yoYahz37
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="aptitude-enoent-fix.patch"
Content-Transfer-Encoding: quoted-printable

Mon Nov 7 14:50:23 PST 2005 Daniel Burrows <email address hidden>
  * Handle the case where the old package list isn't available to preserve =
(Closes: #337869).
diff -rN -udp old-head/src/generic/apt/aptcache.cc new-head/src/generic/apt=
/aptcache.cc
--- old-head/src/generic/apt/aptcache.cc 2005-11-07 14:57:52.000000000 -0800
+++ new-head/src/generic/apt/aptcache.cc 2005-11-07 14:50:11.000000000 -0800
@@ -617,7 +617,7 @@ bool aptitudeDepCache::save_selection_li
        return false;
      }
=20
- if(link(statefile.c_str(), oldstr.c_str()) !=3D 0)
+ if(link(statefile.c_str(), oldstr.c_str()) !=3D 0 && errno !=3D ENOENT)
      {
        _error->Errno("save_selection_list", _("failed to rename %s to %s"),
        statefile.c_str(), (statefile + ".old").c_str());

--S1BNGpv0yoYahz37--

--RYJh/3oyKhIjGcML
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDb9wech6xsM7kSXgRAiazAJ4meb4/t247o2e0kKudnqGRxORHNACgpwTL
7ngi/alM6RFjjgOO0qsfWEM=
=Y3hv
-----END PGP SIGNATURE-----

--RYJh/3oyKhIjGcML--

Revision history for this message
In , Daniel Burrows (dburrows) wrote : merge

severity 338093 grave
merge 338093 337869
thanks

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 7 Nov 2005 20:02:00 -0800
From: Daniel Burrows <email address hidden>
To: <email address hidden>
Subject: merge

--M9NhX3UHpAaciwkO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

severity 338093 grave
merge 338093 337869
thanks

--M9NhX3UHpAaciwkO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDcCM4ch6xsM7kSXgRAiUAAJwMbiY76ALe+Rz27fdIBlWVvvczLACgrP8Z
GawmNSL241yQA/BIvKPD4HU=
=SKmo
-----END PGP SIGNATURE-----

--M9NhX3UHpAaciwkO--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

*** Bug 25245 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Daniel Burrows (dburrows) wrote : Bug#337869: fixed in aptitude 0.4.0-3
Download full text (3.4 KiB)

Source: aptitude
Source-Version: 0.4.0-3

We believe that the bug you reported is fixed in the latest version of
aptitude, which is due to be installed in the Debian FTP archive:

aptitude-doc-cs_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-cs_0.4.0-3_all.deb
aptitude-doc-en_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-en_0.4.0-3_all.deb
aptitude-doc-fi_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-fi_0.4.0-3_all.deb
aptitude-doc-fr_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-fr_0.4.0-3_all.deb
aptitude_0.4.0-3.diff.gz
  to pool/main/a/aptitude/aptitude_0.4.0-3.diff.gz
aptitude_0.4.0-3.dsc
  to pool/main/a/aptitude/aptitude_0.4.0-3.dsc
aptitude_0.4.0-3_i386.deb
  to pool/main/a/aptitude/aptitude_0.4.0-3_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Burrows <email address hidden> (supplier of updated aptitude package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 7 Nov 2005 18:12:04 -0800
Source: aptitude
Binary: aptitude-doc-cs aptitude-doc-fr aptitude-doc-fi aptitude-doc-en aptitude
Architecture: source all i386
Version: 0.4.0-3
Distribution: unstable
Urgency: low
Maintainer: Daniel Burrows <email address hidden>
Changed-By: Daniel Burrows <email address hidden>
Description:
 aptitude - terminal-based apt frontend
 aptitude-doc-cs - Czech manual for aptitude, a terminal-based apt frontend
 aptitude-doc-en - English manual for aptitude, a terminal-based apt frontend
 aptitude-doc-fi - Finnish manual for aptitude, a terminal-based apt frontend
 aptitude-doc-fr - French manual for aptitude, a terminal-based apt frontend
Closes: 337554 337689 337778 337869
Changes:
 aptitude (0.4.0-3) unstable; urgency=low
 .
   * Pull changes from upstream repository:
 .
     - Handle the case where the old package list isn't available to
       preserve (Closes: #337869).
 .
     - Make "Cancel" in the "download complete" dialog do what it should.
       (Closes: #337554, #337778)
 .
     - Correctly handle terminals with large numbers of colors; since we
       have to accomadate arbitrary foreground/background pairs, just
       restrict the user to the lower sqrt(COLOR_PAIRS) colors.
       (Closes: #337689)
Files:
 b08b6303d32f0bf39bf174ef5a415809 796 admin - aptitude_0.4.0-3.dsc
 19553f9df38c2bff7cb4bdec8d4578f0 21964 admin - aptitude_0.4.0-3.diff.gz
 7a2d918f26f0c84a7d679fc8be0ef164 267902 doc optional aptitude-doc-cs_0.4.0-3_all.deb
 4da2b001bee8a79ff15284debc5b4b67 318984 doc optional aptitude-doc-en_0.4.0-3_all.deb
 f29df1bfca5101cd15de79d4a199653d 252920 doc optional aptitude-doc-fi_0.4.0-3_all.deb
 fe0cd77b520573b26693dad179bf3948 244402 doc optional aptitude-doc-fr_0.4.0-3_all.deb
 e0eedc567d8338fc08de5ed27a7...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.6 KiB)

Message-Id: <email address hidden>
Date: Tue, 08 Nov 2005 09:47:07 -0800
From: Daniel Burrows <email address hidden>
To: <email address hidden>
Subject: Bug#337869: fixed in aptitude 0.4.0-3

Source: aptitude
Source-Version: 0.4.0-3

We believe that the bug you reported is fixed in the latest version of
aptitude, which is due to be installed in the Debian FTP archive:

aptitude-doc-cs_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-cs_0.4.0-3_all.deb
aptitude-doc-en_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-en_0.4.0-3_all.deb
aptitude-doc-fi_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-fi_0.4.0-3_all.deb
aptitude-doc-fr_0.4.0-3_all.deb
  to pool/main/a/aptitude/aptitude-doc-fr_0.4.0-3_all.deb
aptitude_0.4.0-3.diff.gz
  to pool/main/a/aptitude/aptitude_0.4.0-3.diff.gz
aptitude_0.4.0-3.dsc
  to pool/main/a/aptitude/aptitude_0.4.0-3.dsc
aptitude_0.4.0-3_i386.deb
  to pool/main/a/aptitude/aptitude_0.4.0-3_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Burrows <email address hidden> (supplier of updated aptitude package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 7 Nov 2005 18:12:04 -0800
Source: aptitude
Binary: aptitude-doc-cs aptitude-doc-fr aptitude-doc-fi aptitude-doc-en aptitude
Architecture: source all i386
Version: 0.4.0-3
Distribution: unstable
Urgency: low
Maintainer: Daniel Burrows <email address hidden>
Changed-By: Daniel Burrows <email address hidden>
Description:
 aptitude - terminal-based apt frontend
 aptitude-doc-cs - Czech manual for aptitude, a terminal-based apt frontend
 aptitude-doc-en - English manual for aptitude, a terminal-based apt frontend
 aptitude-doc-fi - Finnish manual for aptitude, a terminal-based apt frontend
 aptitude-doc-fr - French manual for aptitude, a terminal-based apt frontend
Closes: 337554 337689 337778 337869
Changes:
 aptitude (0.4.0-3) unstable; urgency=low
 .
   * Pull changes from upstream repository:
 .
     - Handle the case where the old package list isn't available to
       preserve (Closes: #337869).
 .
     - Make "Cancel" in the "download complete" dialog do what it should.
       (Closes: #337554, #337778)
 .
     - Correctly handle terminals with large numbers of colors; since we
       have to accomadate arbitrary foreground/background pairs, just
       restrict the user to the lower sqrt(COLOR_PAIRS) colors.
       (Closes: #337689)
Files:
 b08b6303d32f0bf39bf174ef5a415809 796 admin - aptitude_0.4.0-3.dsc
 19553f9df38c2bff7cb4bdec8d4578f0 21964 admin - aptitude_0.4.0-3.diff.gz
 7a2d918f26f0c84a7d679fc8be0ef164 267902 doc optional aptitude-doc-cs_0.4.0-3_all.deb
 4da2b001bee8a79ff15284debc5b4b67 318984 doc optional aptitude-doc-en_0.4.0...

Read more...

Revision history for this message
Michael Vogt (mvo) wrote :

this is fixed in the current version of aptitude in ubuntu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.