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

Bug#622912: apt: apt-get update fails for repositories which do not have a Release file



Package: apt
Version: 0.8.14

This change:

,----
| apt (0.8.14) unstable; urgency=low
| 
|   [ Julian Andres Klode ]
|   * apt-pkg/acquire-item.cc:
|     - Use Release files even if they cannot be verified (LP: #704595)
`----

has the side effect that "apt-get update" now fails for repositories
that do not have a Release file at all, such as flat directories scanned
with dpkg-scanpackages:

,----
| % LANG=C sudo apt-get update
| Ign file: debs/ InRelease
| Ign file: debs/ Release.gpg          
| Err file: debs/ Release              
|   rename failed, No such file or directory (/var/lib/apt/lists/partial/_usr_local_var_apt_debs_Release -> /var/lib/apt/lists/_usr_local_var_apt_debs_Release).
| Ign file: debs/ Translation-en       
| Ign file: debs/ Translation-de                    
| Hit http://ftp.de.debian.org unstable InRelease   
| Hit http://ftp.de.debian.org experimental InRelease
| Hit http://ftp.de.debian.org unstable/main Sources/DiffIndex
| Hit http://ftp.de.debian.org unstable/contrib Sources/DiffIndex
| Hit http://ftp.de.debian.org unstable/non-free Sources/DiffIndex
| Hit http://ftp.de.debian.org unstable/main i386 Packages/DiffIndex
| Hit http://ftp.de.debian.org unstable/contrib i386 Packages/DiffIndex
| Hit http://ftp.de.debian.org unstable/non-free i386 Packages/DiffIndex
| Ign http://ftp.de.debian.org unstable/contrib TranslationIndex
| Hit http://ftp.de.debian.org unstable/main TranslationIndex
| Ign http://ftp.de.debian.org unstable/non-free TranslationIndex
| Hit http://ftp.de.debian.org experimental/main Sources/DiffIndex
| Hit http://ftp.de.debian.org experimental/main i386 Packages/DiffIndex
| Ign http://ftp.de.debian.org experimental/main TranslationIndex
| Hit http://ftp.de.debian.org unstable/main Translation-de
| Ign http://ftp.de.debian.org unstable/contrib Translation-en
| Ign http://ftp.de.debian.org unstable/contrib Translation-de
| Ign http://ftp.de.debian.org unstable/non-free Translation-en
| Ign http://ftp.de.debian.org unstable/non-free Translation-de
| Ign http://ftp.de.debian.org experimental/main Translation-en
| Ign http://ftp.de.debian.org experimental/main Translation-de
| W: Failed to fetch file:/usr/local/var/apt/debs/Release  rename failed, No such file or directory (/var/lib/apt/lists/partial/_usr_local_var_apt_debs_Release -> /var/lib/apt/lists/_usr_local_var_apt_debs_Release).
| 
| E: Some index files failed to download. They have been ignored, or old ones used instead.
`----

I have now changed my script to run "apt-ftparchive release" to work around
the problem, but I think this was not intentional.


-- Package-specific info:

-- /etc/apt/preferences --

Package: *
Pin: release a=experimental
Pin-Priority: 101

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

deb file:/usr/local/var/apt debs/

deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free

deb http://ftp.de.debian.org/debian/ experimental main
deb-src http://ftp.de.debian.org/debian/ experimental main

# deb http://security.debian.org/ stable/updates main

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.39-rc3-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28       GnuPG archive keys of the Debian a
ii  gnupg                   1.4.11-3         GNU privacy guard - a free PGP rep
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.6.0-2        GCC support library
ii  libstdc++6              4.6.0-2          The GNU Standard C++ Library v3
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

apt recommends no packages.

Versions of packages apt suggests:
ii  apt-doc                       0.8.14     Documentation for APT
ii  aptitude                      0.6.3-4    terminal-based package manager (te
ii  bzip2                         1.0.5-6    high-quality block-sorting file co
ii  dpkg-dev                      1.16.0.1   Debian package development tools
ii  python-apt                    0.7.100.3  Python interface to libapt-pkg
ii  xz-lzma [lzma]                5.0.0-2    XZ-format compression utilities - 

-- no debconf information



Reply to: