Bug#639964: apt: regression from 0.8.15.5: sources with no component give error processing Release file
On Thu, Sep 01, 2011 at 01:16:41AM -0400, Matthew Gabeler-Lee wrote: > Package: apt > Version: 0.8.15.6 > Severity: important > > As of apt 0.8.15.6, sources.list entries that use the "deb http://... path/" > format instead of the "deb http://... release component" format fail (for > me). > > For example, I have the following entries in my sources.list: > > deb-src http://iguanaworks.net/downloads/debian source/ > deb http://iguanaworks.net/downloads/debian binary-amd64/ > > With apt 0.8.15.5, apt-get update reports no errors. With apt 0.8.15.6, I > get these errors: > > W: Failed to fetch http://iguanaworks.net/downloads/debian/source/Release > Unable to find expected entry 'Sources' in Release file (Wrong sources.list > entry or malformed file) > > W: Failed to fetch > http://iguanaworks.net/downloads/debian/binary-amd64/Release Unable to find > expected entry 'Packages' in Release file (Wrong sources.list entry or > malformed file) > > The latter Release file currently looks like this: > > Archive: karmic > Component: contrib > Origin: IguanaWorks > Label: IguanaWorks Debian/Ubuntu Repository > Architecture: amd64 > > Which is the same set of keys that the ftp.us.debian.org Release file(s) > have AFAICT. Yes, but in addition to that, the official archive has hashes. And this is the difference. APT expects to find the index files it shall fetch mentioned in the Release file. Using apt-ftparchive to generate a Release files with hashes for the repository fixes the problem. An alternative would be for APT to not try to find hashsums for indexes if there are no hashes in the release at all. Whether it makes sense to support such Release files is another question. > > >From searching around, I'm wondering if this may be related to an older > (fixed) bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622250 No. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#639964: apt: regression from 0.8.15.5: sources with no component give error processing Release file
Package: apt Version: 0.8.15.6 Severity: important As of apt 0.8.15.6, sources.list entries that use the "deb http://... path/" format instead of the "deb http://... release component" format fail (for me). For example, I have the following entries in my sources.list: deb-src http://iguanaworks.net/downloads/debian source/ deb http://iguanaworks.net/downloads/debian binary-amd64/ With apt 0.8.15.5, apt-get update reports no errors. With apt 0.8.15.6, I get these errors: W: Failed to fetch http://iguanaworks.net/downloads/debian/source/Release Unable to find expected entry 'Sources' in Release file (Wrong sources.list entry or malformed file) W: Failed to fetch http://iguanaworks.net/downloads/debian/binary-amd64/Release Unable to find expected entry 'Packages' in Release file (Wrong sources.list entry or malformed file) The latter Release file currently looks like this: Archive: karmic Component: contrib Origin: IguanaWorks Label: IguanaWorks Debian/Ubuntu Repository Architecture: amd64 Which is the same set of keys that the ftp.us.debian.org Release file(s) have AFAICT. >From searching around, I'm wondering if this may be related to an older (fixed) bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622250 -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "amd64"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Install-Recommends "0"; APT::Install-Suggests "0"; APT::NeverAutoRemove ""; APT::NeverAutoRemove:: "^firmware-linux.*"; APT::NeverAutoRemove:: "^linux-firmware$"; APT::NeverAutoRemove:: "^linux-image.*"; APT::NeverAutoRemove:: "^kfreebsd-image.*"; APT::NeverAutoRemove:: "^linux-restricted-modules.*"; APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*"; APT::NeverAutoRemove:: "^gnumach$"; APT::NeverAutoRemove:: "^gnumach-image.*"; APT::Never-MarkAuto-Sections ""; APT::Never-MarkAuto-Sections:: "metapackages"; APT::Never-MarkAuto-Sections:: "restricted/metapackages"; APT::Never-MarkAuto-Sections:: "universe/metapackages"; APT::Never-MarkAuto-Sections:: "multiverse/metapackages"; APT::Never-MarkAuto-Sections:: "oldlibs"; APT::Never-MarkAuto-Sections:: "restricted/oldlibs"; APT::Never-MarkAuto-Sections:: "universe/oldlibs"; APT::Never-MarkAuto-Sections:: "multiverse/oldlibs"; APT::Authentication ""; APT::Authentication::TrustCDROM "true"; APT::Default-Release "testing"; APT::Architectures ""; APT::Architectures:: "amd64"; 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::vendorlist "vendors.list"; Dir::Etc::vendorparts "vendors.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::dpkg "/usr/bin/dpkg"; 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]+$"; Acquire ""; Acquire::cdrom ""; Acquire::cdrom::mount "/media/cdrom/"; Acquire::http ""; Acquire::http::timeout "10"; Acquire::ftp ""; Acquire::ftp::timeout "10"; Acquire::Retries "3"; Acquire::Languages ""; Acquire::Languages:: "en"; Acquire::Languages:: "none"; DPkg ""; DPkg::Pre-Install-Pkgs ""; DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true"; DPkg::Post-Invoke ""; DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p $PPID | grep -c remove) != 1 ]; then /usr/sbin/localepurge; else exit 0; fi"; CommandLine ""; CommandLine::AsString "apt-config dump"; -- (no /etc/apt/preferences present) -- -- /etc/apt/sources.list -- # testing deb http://ftp.us.debian.org/debian/ testing main non-free contrib deb-src http://ftp.us.debian.org/debian/ testing main non-free contrib # unstable deb http://ftp.us.debian.org/debian/ unstable main non-free contrib deb-src http://ftp.us.debian.org/debian/ unstable main non-free contrib # experimental #deb http://ftp.us.debian.org/debian/ experimental main non-free contrib #deb-src http://ftp.us.debian.org/debian/ experimental main non-free contrib # security/testing (usually dead) #deb http://security.debian.org/ testing/updates main contrib non-free #deb-src http://security.debian.org/ testing/updates main contrib non-free # media packages deb http://www.debian-multimedia.or