Summary: | Build debian package failed | ||
---|---|---|---|
Product: | Koha | Reporter: | martin.stastny |
Component: | Packaging | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | dcook, josef.moravec, mirko |
Version: | 16.05 | ||
Hardware: | All | ||
OS: | Linux | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
Description
martin.stastny
2016-09-30 14:37:26 UTC
The nightly builds don't show errors. https://apt.abunchofthings.net/koha-nightly/ What are you trying to build? Master? Did you try to update pbuilder environment? See https://wiki.koha-community.org/wiki/Building_Debian_Packages_-_The_Easy_Way That was the problem - I skipped some pbuilder setup steps. Thanks for helping. I've just run into the same problem, so I re-visited https://wiki.koha-community.org/wiki/Building_Debian_Packages_-_The_Easy_Way. I did my initial pbuilder setup quite a long time ago, so after reading Josef's comment, I figured I'd look at it again. So I re-ran the following: sudo apt-get install devscripts pbuilder dh-make fakeroot debian-archive-keyring sudo pbuilder --login --save-after-login apt-get install wget gnupg2 wget -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add - apt-get update exit I picked up an upgrade for debian-archive-keyring, and it looks like maybe I'd missed gnupg2 the first time around as that prompted the installation of quite a few packages. Just trying to build a vanilla 17.05.03 again now... Hmm still failing. Here are some error highlights that I'm getting: dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on libalgorithm-checkdigits-perl; however: Package libalgorithm-checkdigits-perl is not installed. pbuilder-satisfydepends-dummy depends on libanyevent-http-perl; however: Package libanyevent-http-perl is not installed. pbuilder-satisfydepends-dummy depends on libanyevent-perl; however: Package libanyevent-perl is not installed. pbuilder-satisfydepends-dummy depends on libarchive-extract-perl; however: Package libarchive-extract-perl is not installed. pbuilder-satisfydepends-dummy depends on libarchive-zip-perl; however: Package libarchive-zip-perl is not installed. pbuilder-satisfydepends-dummy depends on libauthen-cas-client-perl; however: Package libauthen-cas-client-perl is not installed. pbuilder-satisfydepends-dummy depends on libbiblio-endnotestyle-perl; however: Package libbiblio-endnotestyle-perl is not installed. pbuilder-satisfydepends-dummy depen Err http://mirror.linux.org.au/debian/ jessie/main libexpat1 amd64 2.1.0-6+deb8u3 404 Not Found [IP: 150.203.164.37 80] Err http://mirror.linux.org.au/debian/ jessie/main libtiff5 amd64 4.0.3-12.3+deb8u2 404 Not Found [IP: 150.203.164.37 80] Err http://debian.koha-community.org/koha/ stable/main libcgi-session-driver-memcached-perl all 0.04-1koha2 404 Not Found Err http://debian.koha-community.org/koha/ stable/main libconvert-basen-perl all 0.01-1koha1 404 Not Found Err http://debian.koha-community.org/koha/ stable/main libmarc-record-perl all 2.0.6-1koha1 404 Not Found Err http://debian.koha-community.org/koha/ stable/main libtemplate-plugin-json-escape-perl all 0.2-1koha1 404 Not Found E: Failed to fetch http://mirror.linux.org.au/debian/pool/main/e/expat/libexpat1_2.1.0-6+deb8u3_amd64.deb: 404 Not Found [IP: 150.203.164.37 80] E: Unable to correct for unavailable packages Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... E: pbuilder-satisfydepends failed. I: Copying back the cached apt archive contents I: unmounting dev/pts filesystem I: unmounting run/shm filesystem I: unmounting proc filesystem I: cleaning the build env I: removing directory /var/cache/pbuilder/build//9441 and its subdirectories Command 'pdebuild --buildresult /home/dcook/debian' returns an error (256) (In reply to David Cook from comment #5) > Err http://mirror.linux.org.au/debian/ jessie/main libexpat1 amd64 > 2.1.0-6+deb8u3 > 404 Not Found [IP: 150.203.164.37 80] > Err http://mirror.linux.org.au/debian/ jessie/main libtiff5 amd64 > 4.0.3-12.3+deb8u2 > 404 Not Found [IP: 150.203.164.37 80] > Err http://debian.koha-community.org/koha/ stable/main > libcgi-session-driver-memcached-perl all 0.04-1koha2 > 404 Not Found > Err http://debian.koha-community.org/koha/ stable/main libconvert-basen-perl > all 0.01-1koha1 > 404 Not Found > Err http://debian.koha-community.org/koha/ stable/main libmarc-record-perl > all 2.0.6-1koha1 > 404 Not Found > Err http://debian.koha-community.org/koha/ stable/main > libtemplate-plugin-json-escape-perl all 0.2-1koha1 > 404 Not Found Looking at http://debian.koha-community.org: 1) I can see libcgi-session-driver-memcached-perl in http://debian.koha-community.org/koha/pool/main/libc/, but I see libcgi-session-driver-memcached-perl_0.04-1kohadev2_all.deb which looks like the wrong release 2) I can't find libconvert-basen-perl in http://debian.koha-community.org/koha/pool/main/libc/ 3) I don't see libmarc-record-perl in http://debian.koha-community.org/koha/pool/main/libm/ 4) I don't see libtemplate-plugin-json-escape-perl in http://debian.koha-community.org/koha/pool/main/libt/ Yet apt-cache seems to have info about these packages. For instance: root@debian-jessie-dcook:/# apt-cache show libconvert-basen-perl Package: libconvert-basen-perl Version: 0.01-1koha1 Filename: pool/main/libc/libconvert-basen-perl/libconvert-basen-perl_0.01-1_all.deb Looking at http://mirror.linux.org.au/debian/: 1) libexpat1 pool/main/e/expat/libexpat1_2.1.0-6+deb8u3_amd64.deb Instead of libexpat1_2.1.0-6+deb8u3_amd64.deb, I see libexpat1_2.1.0-6+deb8u4_amd64.deb 2) libtiff5 Instead of libtiff5_4.0.3-12.3+deb8u2_amd64.deb, I see libtiff5_4.0.3-12.3+deb8u4_amd64.deb Just did another apt-get update and it seems to have updated apt's cache again... so will try to build the Koha package yet again... T(In reply to David Cook from comment #7) > Just did another apt-get update and it seems to have updated apt's cache > again... so will try to build the Koha package yet again... That last apt-get update seems to have helped a lot. Still in the process of building but getting farther this time... I don't know why an apt-get update 5 minutes later would make a difference when it looks like Koha's apt repository hasn't really changed much in months. Weird. But ok. Huzzah! I was able to build the Debian packages in the end! I had already run "apt-get update" several times before getting the errors, but that final "apt-get update" seems to have done the trick. Don't know if it had to do with some finer points of apt caching or what, but... all good now it seems. |