2017-06-28 17 views
0

命令は私は両方を試してみました、とドッキングウィンドウなしで有効にした、論理的なように見える:TravisはカスタムソースリポジトリでDebianパッケージを見つけることができません、なぜですか?ここ

https://docs.travis-ci.com/user/installing-dependencies/

ここでログです:ここでは

Adding APT Sources (BETA) 
$ export DEBIAN_FRONTEND=noninteractive 
0.01s$ echo "deb https://dl.bintray.com/solvingj/public-deb unstable main" | sudo tee -a /etc/apt/sources.list > /dev/null 
Installing APT Packages (BETA) 
$ export DEBIAN_FRONTEND=noninteractive 
3.03s$ sudo -E apt-get -yq update &>> ~/apt-get-update.log 
0.30s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install cmake go-bin-deb 
Reading package lists... 
Building dependency tree... 
Reading state information... 
E: Unable to locate package go-bin-deb 
apt-get.diagnostics 
apt-get install failed 
$ cat ~/apt-get-update.log 
Ign:1 http://us-central1.gce.archive.ubuntu.com/ubuntu precise InRelease 
Hit:2 http://us-central1.gce.archive.ubuntu.com/ubuntu precise-updates InRelease 
Hit:3 http://us-central1.gce.archive.ubuntu.com/ubuntu precise-backports InRelease 
Hit:4 http://us-central1.gce.archive.ubuntu.com/ubuntu precise Release 
Ign:5 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist InRelease 
Get:6 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist Release [2,040 B] 
Get:7 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist Release.gpg [490 B] 
Hit:8 http://security.ubuntu.com/ubuntu precise-security InRelease 
Hit:9 http://apt.postgresql.org/pub/repos/apt precise-pgdg InRelease 
Hit:11 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu precise InRelease 
Get:12 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist/10gen amd64 Packages [30.9 kB] 
Ign:13 http://ppa.launchpad.net/couchdb/stable/ubuntu precise InRelease 
Ign:14 http://ppa.launchpad.net/git-core/v1.8/ubuntu precise InRelease 
Get:15 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist/10gen i386 Packages [30.5 kB] 
Hit:16 http://ppa.launchpad.net/pollinate/ppa/ubuntu precise InRelease 
Ign:17 https://dl.bintray.com/solvingj/public-deb unstable InRelease 
Hit:18 http://ppa.launchpad.net/travis-ci/zero-mq/ubuntu precise InRelease 
Hit:19 http://ppa.launchpad.net/ubuntugis/ppa/ubuntu precise InRelease 
Hit:20 http://ppa.launchpad.net/webupd8team/java/ubuntu precise InRelease 
Hit:21 https://packagecloud.io/basho/riak/ubuntu precise InRelease 
Hit:22 http://ppa.launchpad.net/couchdb/stable/ubuntu precise Release 
Hit:24 https://packagecloud.io/computology/apt-backport/ubuntu precise InRelease 
Hit:25 http://ppa.launchpad.net/git-core/v1.8/ubuntu precise Release 
Get:27 https://dl.bintray.com/solvingj/public-deb unstable Release [2,673 B] 
Ign:28 https://dl.bintray.com/solvingj/public-deb unstable Release.gpg 
Get:29 https://dl.bintray.com/solvingj/public-deb unstable/main amd64 Packages [14 B] 
Get:30 https://dl.bintray.com/solvingj/public-deb unstable/main i386 Packages [14 B] 
Fetched 66.7 kB in 1s (38.0 kB/s) 
Reading package lists... 
W: http://us-central1.gce.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://us-central1.gce.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://us-central1.gce.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release.gpg: Signature by key 492EAFE8CD016A07919F1D2B9ECBEC467F0CEB10 uses weak digest algorithm (SHA1) 
W: http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1) 
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/precise/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1) 
W: http://ppa.launchpad.net/git-core/v1.8/ubuntu/dists/precise/Release.gpg: Signature by key E1DD270288B4E6030699E45FA1715D88E1DF1F24 uses weak digest algorithm (SHA1) 
W: The repository 'https://dl.bintray.com/solvingj/public-deb unstable Release' is not signed. 
The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install cmake go-bin-deb" failed and exited with 100 during . 

です私のtravis.ymlファイルの開始:

sudo: required 
language: cpp 
compiler: 
- gcc 
os: 
- linux 
addons: 
    apt: 
    sources: 
    - sourceline: deb https://dl.bintray.com/solvingj/public-deb unstable main 
    packages: 
    - cmake 
    - go-bin-deb 
あなたは、カスタムレポをご覧ください。Debianのマシンにそれを追加し、問題なくパッケージを見つけることができます

https://bintray.com/solvingj/public-deb

[email protected]:/home/myprofile/go-github-release-test# apt-get clean 
[email protected]:/home/myprofile/go-github-release-test# more /etc/apt/sources.list 
deb https://dl.bintray.com/solvingj/public-deb unstable main 

[email protected]:/home/myprofile/go-github-release-test# apt-get install go-bin-deb 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
The following NEW packages will be installed: 
    go-bin-deb 
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 
Need to get 1,074 kB of archives. 
After this operation, 3,072 B of additional disk space will be used. 
Get:1 https://mh-cbon.github.io/go-bin-deb/apt/public/ all/contrib go-bin-deb i386 0.0.18 [1,074 kB] 
Fetched 1,074 kB in 1s (865 kB/s) 
Selecting previously unselected package go-bin-deb. 
(Reading database ... 36957 files and directories currently installed.) 
Preparing to unpack .../go-bin-deb_0.0.18_i386.deb ... 
Unpacking go-bin-deb (0.0.18) ... 
Setting up go-bin-deb (0.0.18) ... 
[email protected]:/home/myprofile/go-github-release-test# 

答えて

0

問題は、リポジトリにパッケージの32ビットバージョンのみが含まれていることでした。私の成功したテストは32ビットOSで行われました。私の失敗したテストはTravisとWindows Subsystem for Linuxで、どちらも64ビットでした。 debianリポジトリに64ビットビルドをアップロードすると、パッケージが見つかりました。

+0

あなた自身の答えを受け入れる*ので、ヘルプ*が必要な質問として表示されなくなります* –

-1

まあ、警告がかなり明確である:

W: The repository 'https://dl.bintray.com/solvingj/public-deb unstable Release' is not signed. 

apt各パッケージのgpg-verificationを実行すると、ハードになります。パッケージを悪意のあるバージョンに置き換えるためのttackers。

したがって、という記号を付けてください。aptは、パッケージの信頼性を検証できます。

--allow-unauthenticated 
     Ignore if packages can't be authenticated and don't prompt about it. This can be useful while working with 
     local repositories, but is a huge security risk if data authenticity isn't ensured in another way by the user 
     itself. The usage of the Trusted option for sources.list(5) entries should usually be preferred over this 
     global override. Configuration Item: APT::Get::AllowUnauthenticated. 

がそれを使用しないでください。

、安全でない危険と一般的に悪い選択肢では--allow-unauthenticatedフラグを追加することです。あなたは警告されています! 代わりにリポジトリに署名してください。

+0

署名に関するメッセージは警告であり、問​​題ではないことが判明しました。 – solvingJ

関連する問題