Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails because package can't be located #5221

Closed
est31 opened this issue Dec 5, 2015 · 46 comments
Closed

Build fails because package can't be located #5221

est31 opened this issue Dec 5, 2015 · 46 comments
Assignees

Comments

@est31
Copy link

est31 commented Dec 5, 2015

Minetest fails to build on the new gce based infrastructure:

No changes of travis related scripts between those two builds.
The error message of the failing build:

E: Unable to locate package p7zip-full
@est31 est31 changed the title [precise-gce] Build fails because package can [precise-gce] Build fails because package can't be located Dec 5, 2015
@est31
Copy link
Author

est31 commented Dec 5, 2015

It seems to work again if you add sudo apt-get update to it, but it does require additional build time to download all those sources.

minetest/minetest#3427

@est31 est31 closed this as completed Dec 5, 2015
@est31 est31 reopened this Dec 5, 2015
@letmaik
Copy link

letmaik commented Dec 5, 2015

Same problem for me. Package liblensfun-dev.

@marc1706
Copy link

marc1706 commented Dec 5, 2015

Same issue for our current phpBB builds for retrieving the package parallel: https://travis-ci.org/phpbb/phpbb/jobs/95065974

@meatballhat
Copy link

@est31 @neothemachine @marc1706 Does the addition of sudo apt-get update fix the problem? The apt lists are currently being wiped at the end of the image-baking process, although this step was added prior to GCE and the space savings aren't as big of a deal on GCE, so I can see leaving the apt lists in place as a decent fix.

letmaik added a commit to letmaik/lensfunpy that referenced this issue Dec 5, 2015
@meatballhat meatballhat changed the title [precise-gce] Build fails because package can't be located Build fails because package can't be located Dec 5, 2015
@letmaik
Copy link

letmaik commented Dec 5, 2015

@meatballhat Yes.

@est31
Copy link
Author

est31 commented Dec 5, 2015

@meatballhat I confirm, sudo apt-get update fixes the problem, as pointed out above. That's why I've closed the bug. I did reopen it because I've thought that I'm not the only one having the problem, and perhaps the apt-get update could be done before the image gets created, so that it would require less time for all the builder instances. It would also be consistent with previous behaviour.

@marc1706
Copy link

marc1706 commented Dec 6, 2015

@meatballhat If adding apt-get update fixes that I'm fine with it. I just don't want to change this and then have to revert it again a few days later because you added the apt lists again.
Also I'd just like to point out that this will increase the build time of every build by a significant amount. Are the apt lists really that big to warrant this?

@michaelcullum
Copy link

Running apt-get update doesn't resolve this issue for parallel https://travis-ci.org/phpbb/phpbb-website/jobs/95158185

@hugovk
Copy link

hugovk commented Dec 6, 2015

I reported a similar problem in #5232.

Adding sudo apt-get update fixes the issue here too.

@hobofan
Copy link

hobofan commented Dec 6, 2015

Package fglrx is also not fixed by running sudo apt-get update (which has already been in place):
https://travis-ci.org/autumnai/collenchyma/jobs/95217779

@meatballhat
Copy link

For anyone still experiencing this issue, can you confirm that your universe and/or multiverse packages are still unavailable after an apt-get update? If so, please include a link to the job showing the problem. Thank you! 😻

@hobofan
Copy link

hobofan commented Dec 8, 2015

@meatballhat https://travis-ci.org/autumnai/collenchyma/jobs/95217779 still not working. It looks like fglrx is a restricted package. Are those supposed to be gone?

@meatballhat
Copy link

@hobofan got it, I'll verify the restricted package situation

bobzoller added a commit to goodeggs/travis-utils that referenced this issue Mar 8, 2016
@bobzoller
Copy link

sudo apt-get update
[... snip ...]
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.

(as others, we don't add the Chrome repo, it must be there in the base legacy image.)

https://travis-ci.com/goodeggs/purchase-orders-api/builds/22123944

bobzoller added a commit to goodeggs/travis-utils that referenced this issue Mar 8, 2016
bobzoller added a commit to goodeggs/travis-utils that referenced this issue Mar 8, 2016
jrfonseca added a commit to jrfonseca/drmingw that referenced this issue Mar 10, 2016
zardus added a commit to zardus/ctf-tools that referenced this issue Mar 11, 2016
zardus added a commit to zardus/ctf-tools that referenced this issue Mar 11, 2016
zardus added a commit to zardus/ctf-tools that referenced this issue Mar 11, 2016
jayvdb added a commit to jayvdb/pyexcel that referenced this issue Apr 30, 2016
JLLeitschuh added a commit to wpilibsuite/allwpilib that referenced this issue May 12, 2016
`sudo apt-get update -q` can fail a site doesn't respond.
This is the solution proposed here:
Related travis-ci/travis-ci#5221
JLLeitschuh added a commit to wpilibsuite/allwpilib that referenced this issue May 12, 2016
`sudo apt-get update -q` can fail a site doesn't respond.
This is the solution proposed here:
Related travis-ci/travis-ci#5221
@dissolve
Copy link

This thread seemed to get on to several other issues,
but I found a few more packages for the list
libsdl2-dev
libboost-locale-dev

I have tried a couple of different ways to make sure, and both fail with "Unable to locate package"

https://github.com/dissolve/EStation3/blob/d798cc2b22148ff2e39365cb952e5aa3eba862bd/.travis.yml
resulted in
https://travis-ci.org/dissolve/EStation3/builds/141189619

https://github.com/dissolve/EStation3/blob/b5be38df156f4935626b36c5f57bc9d038da10ef/.travis.yml
resulted in
https://travis-ci.org/dissolve/EStation3/builds/141193136

Any suggestions?

@meatballhat
Copy link

Apologies for allowing this thread to go cold. Please yell if you are still having issues with locating packages! ❤️

@dissolve
Copy link

@meatballhat still having problems

E: Unable to locate package libsdl2-dev
E: Unable to locate package libboost-locale-dev

https://travis-ci.org/dissolve/PieStation/builds/141428489

@sih4sing5hong5
Copy link

sih4sing5hong5 commented Mar 18, 2017

It still failed with E: Unable to locate package libx11-dev

https://travis-ci.org/sih4sing5hong5/tai5-uan5_gian5-gi2_kang1-ku7/jobs/212042053

Update: @fniephaus's solution worked!

sih4sing5hong5 added a commit to i3thuan5/tai5-uan5_gian5-gi2_kang1-ku7 that referenced this issue Mar 20, 2017
@WilixLead
Copy link

WilixLead commented Apr 15, 2017

I have same issue for libxkbcommon-x11-dev
E: Unable to locate package libxkbcommon-x11-dev

I use sudo apt-get -qq update before. This is part of my .travis.yml

language: node_js
dist: precise
sudo: required

node_js:
  - node

before_script:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libx11-dev libxtst-dev libxt-dev libx11-xcb-dev; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libxkbcommon-dev; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libxkbcommon-x11-dev; fi

Also, I check approved packages and found "libxkbcommon-x11-dev" in list. But build's still fail

UPDATE When I change sudo: required to sudo: true and dist: trusty packages founds and install normally

@bstabler
Copy link

bstabler commented Jul 2, 2017

I also had the same issue, but for libnlopt-dev. Adding dist:trusty worked for me as well.

language: R
sudo: true
dist: trusty
cache: packages

before_install:
  - sudo apt-get update
  - sudo apt-get -y install libnlopt-dev

taqtiqa-admin pushed a commit to taqtiqa/rkt-base that referenced this issue Jul 25, 2017
See travis-ci/issues/5221
travis-ci/travis-ci#5221 (comment)

Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
@sivhollup
Copy link

I have a similar issue with language-pack-no
Neither trusty nor precise work for me.

@BanzaiMan
Copy link
Contributor

@sivhollup Which repository is supposed to have it? Ubuntu certainly does not. https://packages.ubuntu.com/trusty/language-pack-no

@sivhollup
Copy link

Good question, I thought my google mojo was off today. I found language-pack-nb now, but that does not solve my problem (same for language-pack-nn). I'm going to have to work around this with a different approach. Thanks for a quick reply!

cxbrooks pushed a commit to icyphy/ptII that referenced this issue May 16, 2018
cxbrooks pushed a commit to icyphy/ptII that referenced this issue May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests