apt-get source does not download the correct version

Bug #859665 reported by Jamie Strandboge
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

On an up to date Oneiric, if I have deb-src lines for all the stable releases, Debian and Oneiric, and I do:

$ apt-get source xmlsec1=1.2.14-1

Then 1.2.14-1.2 is downloaded from Oneiric. If I remove the Oneiric entry and try again, 1.2.14-1.2 is downloaded from Debian. If I remove the Debian entries, then I get:
$ sudo apt-get update # this returns no errors
$ apt-get source xmlsec1=1.2.14-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable version '1.2.14-1.2' of package 'xmlsec1'
E: Unable to find a source package for xmlsec1

I checked in a maverick VM, and it all works fine. 'apt-get check' works fine. This functionality is important to the workflow of the security team. I'll attach a sources.list shortly.

Tags: testcase
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Sources.list generated via:
$ grep '^deb' ./sources.list ./sources.list.d/*list|cut -f2- -d ':' > /tmp/sources.list

This was tested on my regular machine as well as a clean VM-- same problem.

tags: added: testcase
Changed in apt (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

Its not quite clear to me what you expect to happen here. If 1.2.14-1 is available in Oneiric and you disable the Oneiric sources it makes sense to me that you wouldn't be able to download the source for 1.2.14-1. Could you elaborate as tho what exactly happens in Maverick? (if that's the release that behaves the way you expect)

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

1.2.14-1 is not available in Oneiric, 1.2.14-1.2 is. I want to get 1.2.14-1 from Maverick, as specified in 'xmlsec1=1.2.14-1'. The problem is that apt is not fetching the precise version I specified-- it is guessing I want something else.

Changed in apt (Ubuntu):
status: Incomplete → New
Revision history for this message
Brian Murray (brian-murray) wrote :

This ended up working for me with the following:

(oneiric-amd64)root@flash:~# apt-get source xmlsec1=1.2.14-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 1659 kB of source archives.
0% [Working]Failed to create client object: Daemon not running
Failed to create client object: Daemon not running
Get:1 http://archive.ubuntu.com/ubuntu/ maverick/universe xmlsec1 1.2.14-1 (dsc) [1235 B]
Get:2 http://archive.ubuntu.com/ubuntu/ maverick/universe xmlsec1 1.2.14-1 (tar) [1653 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ maverick/universe xmlsec1 1.2.14-1 (diff) [5189 B]
Fetched 1659 kB in 1s (1003 kB/s)
gpgv: Signature made Tue Jun 22 14:38:25 2010 PDT using DSA key ID BBEB81BA
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./xmlsec1_1.2.14-1.dsc
dpkg-source: info: extracting xmlsec1 in xmlsec1-1.2.14
dpkg-source: info: unpacking xmlsec1_1.2.14.orig.tar.gz
dpkg-source: info: applying xmlsec1_1.2.14-1.diff.gz
(oneiric-amd64)root@flash:~# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu oneiric main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu maverick main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu oneiric-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu oneiric-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted universe multiverse

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Brian, you are missing the -updates and -security pockets for maverick. But, the point is that with my sources.list, which has oneiric for 'deb', and all stable releases, oneiric and Debian releases for 'deb-src', it does not work.

Revision history for this message
Brian Murray (brian-murray) wrote :

The intent of my comment wasn't "hey you are doing it wrong" rather "this might help someone sort out the bug".

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I was trying something similar today "apt-get source -t quantal openvpn" and received the following error message:

 $ apt-get source -t quantal openvpn
Reading package lists... Done
E: The value 'quantal' is invalid for APT::Default-Release as such a release is not available in the sources

only after adding deb lines from quantal (I'd previously only had deb-src lines) was I able to get the source of openvpn for quantal.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.