Bug#607999: 'apt-get source $src' fails

2024-03-15 Thread Wesley Schwengle


Hi all,

On Wed, Feb 28, 2024 at 11:01:53AM +0800, Tianyu Chen wrote:
> In apt-get(8):
> The arguments are interpreted as binary and source package names. See the
> --only-source option if you want to change that.
> I think this bug should be closed now?
> Best regards,
> Tianyu Chen @ deepin

I think this bug can be closed indeed. In apt 2.6.1 (bookworm) 2.7.13+b1 (sid)
this seems to be fixed.

On bookworm:
$ apt-get source --only-source dovecot -t oldstable
Reading package lists... Done
Selected version '1:2.3.13+dfsg1-2+deb11u1' (oldstable) for dovecot
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:

$ apt-get source --only-source dovecot
Reading package lists... Done
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian/dovecot.git
Please use:
git clone https://salsa.debian.org/debian/dovecot.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 9499 kB of source archives.
Get:1 https://deb.debian.org/debian bookworm/main dovecot 1:2.3.19.1+dfsg1-2.1 
(dsc) [4166 B]

$ apt-get source dovecot
Reading package lists... Done
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian/dovecot.git
Please use:
git clone https://salsa.debian.org/debian/dovecot.git
to retrieve the latest (possibly unreleased) updates to the package.
Skipping already downloaded file 'dovecot_2.3.19.1+dfsg1-2.1.dsc'
Need to get 9495 kB of source archives.
Get:1 https://deb.debian.org/debian bookworm/main dovecot 1:2.3.19.1+dfsg1-2.1 
(tar) [1637 kB]

On sid:
$ apt-get source dovecot -t testing
Reading package lists... Done
Selected version '1:2.3.21+dfsg1-2' (testing) for dovecot
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian/dovecot.git

apt-get source dovecot-core
Reading package lists... Done
Picking 'dovecot' as source package instead of 'dovecot-core'
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian/dovecot.git
Please use:
git clone https://salsa.debian.org/debian/dovecot.git
to retrieve the latest (possibly unreleased) updates to the package.
Skipping already downloaded file 'dovecot_2.3.21+dfsg1.orig-pigeonhole.tar.gz'
Need to get 7910 kB of source archives.
Get:1 https://deb.debian.org/debian unstable/main dovecot 1:2.3.21+dfsg1-3 
(dsc) [4090 B]

$ apt-get source --only-source dovecot -t stable
Reading package lists... Done
Selected version '1:2.3.19.1+dfsg1-2.1' (stable) for dovecot
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:
https://salsa.debian.org/debian/dovecot.git

$ apt-get source dovecot-core -t stable
Reading package lists... Done
Picking 'dovecot' as source package instead of 'dovecot-core'
Selected version '1:2.3.19.1+dfsg1-2.1' (stable) for dovecot

I think this all works as intended. If you feel this is incorrect, feel free to
reopen the bug.

Cheers,
Wesley



Bug#607999: 'apt-get source $src' fails

2024-02-27 Thread Tianyu Chen

In apt-get(8):
The arguments are interpreted as binary and source package names. See 
the --only-source option if you want to change that.

I think this bug should be closed now?
Best regards,
Tianyu Chen @ deepin



Bug#607999: 'apt-get source $src' fails

2012-05-11 Thread Nelson A. de Oliveira
Package: apt
Version: 0.9.2
Followup-For: Bug #607999

Hi!

Today while trying to get a package source I think that I saw the same
problem here.

First tried this:
=
$ apt-get source dovecot
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable target release 'testing' of package 'dovecot'
E: Unable to find a source package for
=

Then:
=
$ apt-get source dovecot -t unstable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable target release 'unstable' of package 'dovecot'
E: Unable to find a source package for
=

But it can find a source package if we use a binary name:
=
$ apt-get source dovecot-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'dovecot' as source package instead of 'dovecot-core'
NOTICE: 'dovecot' packaging is maintained in the 'Git' version control system 
at:
git://git.debian.org/git/collab-maint/dovecot.git
Need to get 4619 kB of source archives.
(…)
=

If it recognizes that dovecot is the source package in this last example,
can't it be smarter and work with the first examples too?

Thank you!

Best regards,
Nelson

-- 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::Default-Release testing;
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::Architectures ;
APT::Architectures:: amd64;
APT::Compressor ;
APT::Compressor::. ;
APT::Compressor::.::Name .;
APT::Compressor::.::Extension ;
APT::Compressor::.::Binary ;
APT::Compressor::.::Cost 1;
APT::Compressor::.::CompressArg ;
APT::Compressor::.::CompressArg:: ;
APT::Compressor::.::UncompressArg ;
APT::Compressor::.::UncompressArg:: ;
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::CompressorName ;
APT::CompressorExtension .;
APT::CompressorBinary ;
APT::CompressorCost 100;
APT::CompressorCompressArg ;
APT::CompressorCompressArg:: -9;
APT::CompressorUncompressArg ;
APT::CompressorUncompressArg:: -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;

Bug#607999: 'apt-get source $src' fails

2011-01-05 Thread David Kalnischkies
On Sat, Dec 25, 2010 at 21:31, Julien Cristau jcris...@debian.org wrote:
 $ apt-get source dietlibc
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 E: Ignore unavailable target release 'testing' of package 'dietlibc'
 E: Unable to find a source package for

dietlibc-{dev,doc} both Recommends/Suggests a dietlibc package, which
doesn't exist in the archive, but as it is referenced for APT the package
exists, but as it isn't in an archive it has no version - especially none
for testing.

The problem is now, that you have a APT::Default-Release configured so
the command is equal to
$ apt-get source dietlibc -t testing
and in the current implementation even equal to
$ apt-get source dietlibc/testing

So APT think you want a specific version of that package which isn't present.
Without APT::Default-Release set it (now obviously) works.

Needs a bit of reordering of logic in FindSrc i assume. Will have a closer
look next week or so with hopefully a bit more time.


Best regards

David Kalnischkies



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#607999: 'apt-get source $src' fails

2010-12-25 Thread Julien Cristau
Package: apt
Version: 0.8.8
Severity: important

$ apt-get source dietlibc
Reading package lists... Done
Building dependency tree   
Reading state information... Done
E: Ignore unavailable target release 'testing' of package 'dietlibc'
E: Unable to find a source package for 

I'm pretty sure this used to work (both 0.8.8 and 0.8.10 fail)...

apt-get source dietlibc-dev works, which is kinda backwards since it
downloads dietlibc.

Cheers,
Julien

-- 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::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 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::Archives ;
APT::Archives::MaxAge 0;
APT::Archives::MinAge 0;
APT::Archives::MaxSize 0;
APT::Default-Release testing;
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]+$;
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:: 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 ;
Unattended-Upgrade ;
Unattended-Upgrade::Allowed-Origins ;
Unattended-Upgrade::Allowed-Origins:: ${distro_id} stable;
Unattended-Upgrade::Allowed-Origins:: ${distro_id} 
${distro_codename}-security;
CommandLine ;
CommandLine::AsString apt-config dump;

-- /etc/apt/preferences --

Package: *
Pin: release a=experimental,o=Debian
Pin-Priority: 101

Package: *
Pin: release o=Debian-kernel archive
Pin-Priority: 101

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

# 
# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official RC amd64 NETINST 
Binary-1 20081104-23:38]/ lenny main

# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official RC amd64 NETINST 
Binary-1 20081104-23:38]/ lenny main

deb http://ftp2.fr.debian.org/debian/ lenny main
deb-src http://ftp2.fr.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

#deb http://kernel-archive.buildserver.net/debian-kernel trunk main 

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2