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

Bug#731734: marked as done (apt: /etc/apt/sources.list has been modified and is empty)



Your message dated Mon, 9 Dec 2013 19:31:51 +0100
with message-id <20131209183151.GB5308@crossbow>
and subject line Re: Bug#731734: apt: /etc/apt/sources.list has been modified and is empty
has caused the Debian Bug report #731734,
regarding apt: /etc/apt/sources.list has been modified and is empty
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.)


-- 
731734: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731734
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.9.14
Severity: grave
Tags: upstream
Justification: renders package unusable

Dear Maintainer,

Today when I update I get this error :

:~# aptitude update
Error: No information about packages! (Maybe no deb entries?)
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin
/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code

And :
:~# mv /etc/apt/apt.conf.d/20apt-show-versions /etc/apt/apt.conf.d/20apt-show-
versions_bad

or :
:~# aptitude purge apt-show-versions

changes nothing and the sources.list has been modified and is empty :
:~# cat /etc/apt/sources.list
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.

latest updates are :
[Updates] apt:i386 0.9.13.1 -> 0.9.14
[Updates] apt-utils:i386 0.9.13.1 -> 0.9.14
[Updates] avahi-daemon:i386 0.6.31-2 -> 0.6.31-3
[Updates] libapt-inst1.5:i386 0.9.13.1 -> 0.9.14
[Updates] libapt-pkg4.12:i386 0.9.13.1 -> 0.9.14

I rebuilt the sources.list and everything is back to normal.



-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "true";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::NeverAutoRemove:: "^linux-image-3.11-2-686-pae$";
APT::NeverAutoRemove:: "^linux-image-extra-3.11-2-686-pae$";
APT::NeverAutoRemove:: "^linux-signed-image-3.11-2-686-pae$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-3.11-2-686-pae$";
APT::NeverAutoRemove:: "^linux-headers-3.11-2-686-pae$";
APT::NeverAutoRemove:: "^linux-image-686-pae$";
APT::NeverAutoRemove:: "^linux-image-extra-686-pae$";
APT::NeverAutoRemove:: "^linux-signed-image-686-pae$";
APT::NeverAutoRemove:: "^linux-backports-modules-.*-686-pae$";
APT::NeverAutoRemove:: "^linux-headers-686-pae$";
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::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i";
APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
APT::Architectures "";
APT::Architectures:: "i386";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
APT::Compressor::::Name "";
APT::Compressor::::Extension ".";
APT::Compressor::::Binary "";
APT::Compressor::::Cost "100";
APT::Compressor::::CompressArg "";
APT::Compressor::::CompressArg:: "-9";
APT::Compressor::::UncompressArg "";
APT::Compressor::::UncompressArg:: "-d";
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::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Bin::lzma "/usr/bin/xz";
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]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";
Acquire::PDiffs "false";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
Acquire::Languages:: "fr";
DPkg "";
DPkg::Pre-Install-Pkgs "";
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:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
DPkg::Post-Invoke:: "if [ -x /usr/sbin/localepurge ] && [ $(ps w -p $PPID | egrep -c '(remove|purge)') != 1 ]; then /usr/sbin/localepurge; else exit 0; fi";
Unattended-Upgrade "";
Unattended-Upgrade::Origins-Pattern "";
Unattended-Upgrade::Origins-Pattern:: "origin=Debian,archive=stable,label=Debian-Security";
CommandLine "";
CommandLine::AsString "apt-config dump";

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


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

# 
deb http://ftp.fr.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ sid main contrib non-free

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

# experimental
deb http://ftp.fr.debian.org/debian/ experimental main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ experimental main contrib non-free

# Videolan libdvdcss
deb http://download.videolan.org/pub/debian/unstable /
#clé videolan
#wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -

#testing 
# deb http://ftp.fr.debian.org/debian/ testing main contrib non-free
# deb-src http://ftp.fr.debian.org/debian/ testing main contrib non-free


# deb-src http://download.videolan.org/pub/debian/unstable /
# deb-src http://download.videolan.org/pub/debian/unstable /

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.11-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.15-1.1
ii  libapt-pkg4.12          0.9.14
ii  libc6                   2.17-97
ii  libgcc1                 1:4.8.2-8
ii  libstdc++6              4.8.2-8

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     <none>
ii  aptitude    0.6.8.2-1.2
ii  dpkg-dev    1.17.4
ii  python-apt  0.9.1
ii  synaptic    0.80.4
ii  xz-utils    5.1.1alpha+20120614-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi,

On Mon, Dec 09, 2013 at 08:59:50AM +0100, cep wrote:
> :~# aptitude update
> Error: No information about packages! (Maybe no deb entries?)
> E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin
> /apt-show-versions || exit 0 ; apt-show-versions -i'
> E: Sub-process returned an error code

So "aptitude update" didn't worked because of "apt-show-versions" and
yet you report this against "apt" because … all of them start with
'apt'?


> And :
> :~# mv /etc/apt/apt.conf.d/20apt-show-versions /etc/apt/apt.conf.d/20apt-show-
> versions_bad

If you want to disable a config file, you should move it out of this
directory (or give it an extension which isn't '.conf' - but you will
get a warning message in this case). "_bad" is maybe human
understandable, but for the machine its a perfectly valid filename.

> or :
> :~# aptitude purge apt-show-versions

That is surprising as the hook you mention isn't run in this case¹ and
removing apt-show-versions would make the config file (which you renamed
and hence can't be removed by purge) setting up a hook which exists
normally as it tests for the existence of the binary – so no problem
then (at least from the error message point of view).

¹ I assume, never really used aptitude. Would be a big bug in aptitude
though as it is not supposed to call those hooks from there.

> changes nothing and the sources.list has been modified and is empty :
> :~# cat /etc/apt/sources.list
> ## See sources.list(5) for more information, especialy
> # Remember that you can only use http, ftp or file URIs
> # CDROMs are managed through the apt-cdrom tool.

That is a bit more than empty and while the text is similar to what the
example file distributed by apt now says it is the old text used until
May 2012 and a) the example includes a mirror and b) is only installed
if the file doesn't exist [and even this is at the moment not in effect].
Sounds more like something removed (all) entries from that file.


So you might want to be a teeny-weeny bit more explicit of what you did
and how so someone has a chance of reproducing the problem, but somehow
I doubt it is an apt bug.

I am therefore closing this bug now as I don't see much chance of
reproduciability and too high severity for it to keep it dangling.
Feel free to reopen if I am wrong.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: