Bug#680330: apt: Should more prominently show when installing a non-free package
Package: apt
Version: 0.9.6
Severity: normal
Hello,
For instance:
$ apt-cache search -i speech | grep -i french
cicero - French and English Text-To-Speech for MBROLA
Great! Let's install it
$ sudo apt-get install cicero
...
The following NEW packages will be installed:
cicero mbrola-fr4
...
Get:1 http://ftp.br.debian.org/debian/ stable/non-free mbrola-fr4 all 0.0.19990521-2 [5621 kB]
Get:2 http://ftp.br.debian.org/debian/ testing/contrib cicero all 0.7.2-2 [94.4 kB]
Oops! This is non-free stuff, I might actually reconsider! But almost no
time to ^C that.
Keeping the non-free source is useful to get upgrades of the non-free
stuff, but brings results in apt-cache which are not flagged as being
non-free.
I would say that apt-get install should warn about installation of new
non-free packages, for instance:
"
The following packages:
mbrola-fr4
come from the non-free section. Are you sure you want to install them?
(y/N)
"
in order to avoid by default any unexpected installation of a
new non-free package, even with the non-free section enabled in
sources.list.
Call me a zealot, but that story actually happened to me and I was not
happy about it.
Samuel
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
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::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::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Update "";
APT::Update::Post-Invoke "";
APT::Update::Post-Invoke:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";
APT::Update::Post-Invoke-Success "";
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::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
APT::Default-Release "testing";
APT::Cache-Limit "100000000";
APT::Architectures "";
APT::Architectures:: "amd64";
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::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]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
Acquire::Languages:: "fr";
Acquire::Languages:: "fr_FR";
DPkg "";
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";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi ";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
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://debian.ens-cachan.fr/ftp/debian stable main contrib non-free
#deb http://debian.ens-cachan.fr/ftp/debian testing main contrib non-free
#deb http://debian.ens-cachan.fr/ftp/debian unstable main contrib non-free
#deb http://debian.ens-cachan.fr/ftp/debian experimental main contrib non-free
#deb-src http://debian.ens-cachan.fr/ftp/debian stable main contrib non-free
#deb-src http://debian.ens-cachan.fr/ftp/debian testing main contrib non-free
#deb-src http://debian.ens-cachan.fr/ftp/debian unstable main contrib non-free
#deb-src http://debian.ens-cachan.fr/ftp/debian experimental main contrib non-free
deb http://ftp.br.debian.org/debian stable main contrib non-free
deb http://ftp.br.debian.org/debian testing main contrib non-free
deb http://ftp.br.debian.org/debian unstable main contrib non-free
deb http://ftp.br.debian.org/debian experimental main contrib non-free
deb-src http://ftp.br.debian.org/debian stable main contrib non-free
deb-src http://ftp.br.debian.org/debian testing main contrib non-free
deb-src http://ftp.br.debian.org/debian unstable main contrib non-free
deb-src http://ftp.br.debian.org/debian experimental main contrib non-free
#deb http://ftp2.fr.debian.org/debian stable main contrib non-free
#deb http://ftp2.fr.debian.org/debian testing main contrib non-free
#deb http://ftp2.fr.debian.org/debian unstable main contrib non-free
#deb http://ftp2.fr.debian.org/debian experimental main contrib non-free
#deb-src http://ftp2.fr.debian.org/debian stable main contrib non-free
#deb-src http://ftp2.fr.debian.org/debian testing main contrib non-free
#deb-src http://ftp2.fr.debian.org/debian unstable main contrib non-free
#deb-src http://ftp2.fr.debian.org/debian experimental main contrib non-free
#deb http://ftp.fr.debian.org/debian stable main contrib non-free
#deb http://ftp.fr.debian.org/debian testing main contrib non-free
#deb http://ftp.fr.debian.org/debian unstable main contrib non-free
#deb http://ftp.fr.debian.org/debian experimental main contrib non-free
#deb-src http://ftp.fr.debian.org/debian stable main contrib non-free
#deb-src http://ftp.fr.debian.org/debian testing main contrib non-free
#deb-src http://ftp.fr.debian.org/debian unstable main contrib non-free
#deb-src http://ftp.fr.debian.org/debian experimental main contrib non-free
#deb http://security.debian.org/debian-security stable main contrib non-free
#deb http://security.debian.org/debian-security testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb http://people.debian.org/~vdanjean/debian unstable main enslyon
deb-src http://people.debian.org/~vdanjean/debian unstable main enslyon
#deb http://oralux.net/packages unstable main non-free contrib
#deb-src http://oralux.net/packages unstable main non-free contrib
#deb http://brl.thefreecat.org/debian unstable main
#deb http://www.debian-multimedia.org testing main non-free
deb http://people.debian.org/~sthibault/tmp ./
deb file:/home/samy/local/debs ./
# bumblebee
deb http://suwako.nomanga.net/debian sid main contrib
deb-src http://suwako.nomanga.net/debian sid main
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.0.4 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt depends on:
ii debian-archive-keyring 2012.4
ii gnupg 1.4.12-4+b1
ii libapt-pkg4.12 0.9.6
ii libc6 2.13-33
ii libgcc1 1:4.7.1-2
ii libstdc++6 4.7.1-2
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.8-1
ii dpkg-dev 1.16.4.3
ii python-apt 0.8.4
ii synaptic 0.75.12
ii xz-utils 5.1.1alpha+20120614-1
-- no debconf information
--
Samuel Thibault <samuel.thibault@fnac.net>
<xterm> The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
Reply to: