Cannot install ccache

Bug #1634685 reported by Dmitry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pbuilder (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

According to https://wiki.ubuntu.com/PbuilderHowto#Speeding_up_the_package_installation one may use ccache to speed up the compilation. However,

# pbuilder --create --override-config --components "main restricted universe multiverse" --extrapackages "ccache"

fails with the error

E: Held packages were changed and -y was used without --allow-change-held-packages.

The full build log is attached.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: pbuilder 0.223
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic i686
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: i386
CurrentDesktop: KDE
Date: Wed Oct 19 01:50:36 2016
InstallationDate: Installed on 2016-08-15 (64 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release i386 (20160420.1)
PackageArchitecture: all
SourcePackage: pbuilder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dmitry (dmitrymq) wrote :
Revision history for this message
Dmitry (dmitrymq) wrote :

"update" action fails with the same error too.

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

Don't do that. I have no idea why the wiki says so (I've just fixed it), but setting CCACHEDIR to an appropriate directory is enough to have pbuilder do everything.

I actually believe (because you didn't copied here your pbuilderrc) that CCACHEDIR is not even set to a non-empty value.

What you're experiencing is installing a package that pbuilder is trying to remove, it is trying to do this:
    apt-get install ccache ccache-
ending up in refusing to act, of course.

Now, if you try with pbuilder >= 0.225.1 you'd see that ccache would be installed, but you wouldn't benefit from it because you're not configuring a target directory.

In short, don't do anything special, just set CCACHEDIR to a directory in pbuilderrc and drop any EXTRAPACKAGES=ccache you're setting.

Changed in pbuilder (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pbuilder (Ubuntu) because there has been no activity for 60 days.]

Changed in pbuilder (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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