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

Re: debian-archive-keyring installing ubuntu keys?



On 26/03/14 10:03, Adam D. Barratt wrote:
> On 2014-03-26 8:39, Daniel Pocock wrote:
>> I have a project that is building in the travis-ci.org environment
>> (based on Ubuntu)
> [...]
>> Unpacking debian-archive-keyring (from
>> .../debian-archive-keyring_2010.08.28_all.deb) ...
>> Setting up debian-archive-keyring (2010.08.28) ...
>
> That package is older than the version in squeeze (i.e. oldstable).
>
> However, even fetching the package from Ubuntu trivially shows that it
> does not contain any non-Debian keys:
>
> $ wget
> http://mirrors.kernel.org/ubuntu/pool/universe/d/debian-archive-keyring/debian-archive-keyring_2010.08.28_all.deb
> $ mkdir debtmp
> $ dpkg-deb -x debian-archive-keyring_2010.08.28_all.deb debtmp
> $ gpg --no-default-keyring --keyring
> debtmp/usr/share/keyrings/debian-archive-keyring.gpg --list-keys
>
> debtmp/usr/share/keyrings/debian-archive-keyring.gpg
> ----------------------------------------------------
> pub   1024D/F42584E6 2008-04-06 [expired: 2012-05-15]
> uid                  Lenny Stable Release Key
> <debian-release@lists.debian.org>
>
> pub   4096R/55BE302B 2009-01-27 [expired: 2012-12-31]
> uid                  Debian Archive Automatic Signing Key (5.0/lenny)
> <ftpmaster@debian.org>
>
> pub   2048R/6D849617 2009-01-24 [expired: 2013-01-23]
> uid                  Debian-Volatile Archive Automatic Signing Key
> (5.0/lenny)
>
> pub   4096R/B98321F9 2010-08-07 [expires: 2017-08-05]
> uid                  Squeeze Stable Release Key
> <debian-release@lists.debian.org>
>
> pub   4096R/473041FA 2010-08-27 [expires: 2018-03-05]
> uid                  Debian Archive Automatic Signing Key
> (6.0/squeeze) <ftpmaster@debian.org>
>
> $
>
>> <ftpmaster@ubuntu.com>" not changed
>> gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key
>> <cdimage@ubuntu.com>" not changed
>> gpg: Total number processed: 2
>> gpg:              unchanged: 2
>
> This suggests that you've got ubuntu-keyring installed in the
> environment.
>
> You'll notice that the messages all say "not changed". There are no
> new keys being added at this point. What's happening is this:
>
> if which apt-key > /dev/null; then
>     apt-key update
> fi
>

Maybe that postinst script needs to
   echo "Summary of which keys are already on your system:"

so it is clear the output does not relate to the contents of the package.

> [from debian-archive-keyring's postinst]
>
> [...]
>> Is this simply because I'm trying to use packages from sid?  Or is this
>> "debian-archive-keyring" package at fault?
>
> As far as I can tell, neither of these is the case. If you don't want
> your environment to contain Ubuntu keys, don't install ubuntu-keyring
> in it.
>

In this case, I don't mind if the environment has Ubuntu keys, I just
wanted to make sure I could get the Debian keys as well

> I can't see how to easily tell from your setup exactly what's
> installed in the environment before your job started, or I'd supply a
> link.

I believe each travis-ci build environment starts out running the last
stable Ubuntu LTS (12.04)

I've just tweaked the build script some more, I tried:

a) dist-upgrade to saucy
b) install debian-archive-keyring from saucy
c) dist-upgrade to sid

but that fails too as it does not appear to be a valid upgrade path. 
I'll try the same thing but s/saucy/trusty

before_install:
 - sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/
saucy main universe"
 - sudo apt-get update -qq
 - sudo apt-get dist-upgrade -qq
 - sudo add-apt-repository -y "deb http://http.debian.net/debian/ sid main"
 - sudo apt-get update -qq
 - sudo apt-get install -qq --force-yes debian-archive-keyring
 - sudo apt-get update -qq
 - sudo apt-get dist-upgrade -qq
 - sudo apt-get install -qq gperf libasio-dev libboost-dev libc-ares-dev
libdb++-dev libpopt-dev \
       libssl-dev perl libmysqlclient-dev libfreeradius-client-dev
libcppunit-dev autotools-dev \
       libpcre3-dev libxerces-c-dev curl libcajun-dev python-cxx-dev
libsipxtapi-dev libsrtp-dev


Latest build log

https://travis-ci.org/resiprocate/resiprocate/jobs/21574148


Reply to: