apt-get source picks Ubuntu version instead of Debian when requesting Debian version and there is only "deb-src", but not "deb"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
New
|
Undecided
|
Unassigned | ||
apt (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When requesting the version from Debian (3.2.1-2), the Ubuntu version gets downloaded instead (3.2.1-2ubuntu1).
% apt-cache madison backuppc | grep Source
backuppc | 3.2.1-2ubuntu1 | http://
backuppc | 3.2.1-2ubuntu1 | http://
backuppc | 3.2.1-2ubuntu1 | http://
backuppc | 3.1.0-9 | http://
backuppc | 3.2.1-2 | http://
backuppc | 3.2.1-2 | http://
% apt-get source backuppc=3.2.1-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 543 kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 543 kB in 1s (281 kB/s)
[...]
I have then tried to use the release name instead, but it fails with both "/unstable" and "-t unstable" notation:
% apt-get source backuppc/unstable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable target release 'unstable' of package 'backuppc'
E: Unable to find a source package for
% apt-get source -t testing backuppc
Reading package lists... Done
E: The value 'testing' is invalid for APT::Default-
The issue appears to be that you do not need also "deb" lines in your apt sources.list, not just "deb-src".
It works now with the "deb" line for unstable being added.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: apt 0.8.16~
ProcVersionSign
Uname: Linux 3.2.0-9-generic-pae i686
ApportVersion: 1.90-0ubuntu2
Architecture: i386
Date: Wed Jan 18 14:59:14 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
SourcePackage: apt
UpgradeStatus: Upgraded to precise on 2011-12-16 (33 days ago)
Changed in apt (Debian): | |
status: | Unknown → Confirmed |
I could not reproduce this problem on Precise:
$ apt-cache policy backuppc archive. ubuntu. com/ubuntu/ precise/main i386 Packages ftp.de. debian. org/debian/ unstable/main i386 Packages archive. ubuntu. com/ubuntu/ lucid/main i386 Packages
backuppc:
Installed: (none)
Candidate: 3.2.1-2ubuntu1
Version table:
3.2.1-2ubuntu1 0
500 http://
3.2.1-2 0
500 http://
3.1.0-9ubuntu1 0
500 http://
$ apt-get source backuppc=3.2.1-2 ftp.de. debian. org/debian/ unstable/main backuppc 3.2.1-2 (dsc) [1,029 B] ftp.de. debian. org/debian/ unstable/main backuppc 3.2.1-2 (tar) [512 kB] ftp.de. debian. org/debian/ unstable/main backuppc 3.2.1-2 (diff) [27.7 kB] 3.2.1.orig. tar.gz 3.2.1-2. diff.gz
...
Need to get 541 kB of source archives.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 541 kB in 0s (705 kB/s)
dpkg-source: info: extracting backuppc in backuppc-3.2.1
dpkg-source: info: unpacking backuppc_
dpkg-source: info: applying backuppc_
dpkg-source: info: upstream files that have been modified: