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

Bug#661502: marked as done (apt: "apt-cache search" segfaults if "apt-get update" encountered "a section with no Package: header")



Your message dated Thu, 3 Apr 2025 21:29:10 +0200
with message-id <f716a03c-50dc-4bfc-88bb-c30c9d990dac@wp.pl>
and subject line Re: Bug#661502: apt: "apt-cache search" segfaults if "apt-get update" encountered "a section with no Package: header"
has caused the Debian Bug report #661502,
regarding apt: "apt-cache search" segfaults if "apt-get update" encountered "a section with no Package: header"
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 owner@bugs.debian.org
immediately.)


-- 
661502: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661502
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.8.10.3+squeeze1
Severity: normal

"apt-get update" currently results in the following error messages on
Squeeze and Sid:

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.debian.org_debian-security_dists_squeeze_updates_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

If I then search for something with e.g. "apt-cache search .", it
reproducibly segfaults on Squeeze.

On Sid, it just errors out with the same error message as "apt-get
update".

Feel free to close this bug as fixed in Sid if you don't think it's
necessary to fix this in Squeeze.

-- Package-specific info:
-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "false";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
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::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::Periodic "";
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Cache-Limit "32777216";
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/cdrom";
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::PDiffs "false";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
Aptitude "";
Aptitude::UI "";
Aptitude::UI::Default-Grouping "filter(missing),status,section(subdir,passthrough),pattern(~O, !~O => other),pattern(~A, !~A => other),section(topdir),priority";
Aptitude::UI::Package-Display-Format "%c%a%M%S%i %p %r %9Z %8I %15v# %15V#";
Aptitude::UI::Package-Header-Format "%N %n #%B %u %?o#";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


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

# this file is installed by dphys-config

# General stuff
deb http://debian.ethz.ch/mirror/debian squeeze main contrib non-free
deb-src http://debian.ethz.ch/mirror/debian squeeze main contrib non-free

# Debian security, first our mirror, than the official ones
deb http://debian.ethz.ch/mirror/debian-security squeeze/updates main contrib non-free
deb-src http://debian.ethz.ch/mirror/debian-security squeeze/updates main contrib non-free

deb http://security.debian.org/debian-security squeeze/updates main contrib non-free
deb-src http://security.debian.org/debian-security squeeze/updates main contrib non-free

# Our own local-tree
deb http://debian.ethz.ch/pub/debian-local squeeze main contrib non-free
deb-src http://debian.ethz.ch/pub/debian-local squeeze main contrib non-free

# --- host specific stuff
deb http://deb.opera.com/opera/ squeeze non-free
#deb http://deb.opera.com/opera-snapshot/ squeeze non-free

# Backports for misc. occassions
deb http://debian.ethz.ch/debian-backports squeeze-backports main
deb-src http://debian.ethz.ch/debian-backports squeeze-backports main

# Mozilla stuff, partially needs backports from above, too.
deb http://mozilla.debian.net/ squeeze-backports iceweasel-3.6
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release
-- System Information:
Debian Release: 6.0.4
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.10-4         GNU privacy guard - a free PGP rep
ii  libc6                   2.11.3-2         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.5-8        GCC support library
ii  libstdc++6              4.4.5-8          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.10.3+squeeze1  Documentation for APT
ii  aptitude              0.6.3-3.2+squeeze1 terminal-based package manager (te
ii  bzip2                 1.0.5-6+squeeze1   high-quality block-sorting file co
ii  dpkg-dev              1.15.8.12          Debian package development tools
ii  lzma                  4.43-14            Compression method of 7z format in
ii  python-apt            0.7.100.1+squeeze1 Python interface to libapt-pkg

-- no debconf information

--- End Message ---
--- Begin Message ---
thanks

Hi!

Feel free to close this bug as fixed in Sid if you don't think it's
necessary to fix this in Squeeze.

Closing as indicated in the bug report. I think that no one will go
back to Squeeze's version of apt and fix the issue there :)

Version 0.8.10.3 (for ~which a report was made) is here:
https://salsa.debian.org/apt-team/apt/-/commit/17c09907ffee9773ff416f9c5a0dc168326a8504.
That version includes single instance of "Encountered a section with no
Package: header" error log, in this file:
./apt-pkg/deb/deblistparser.cc

A second such log has been added in here:
https://salsa.debian.org/apt-team/apt/-/commit/0901c5d08eadea5b5d91b09d4f532a029cb42574
Judging by the commit message, that commit was the fix mentioned by
reporter.

Kamil

--- End Message ---

Reply to: