I am using Travis-CI which uses an Ubuntu 14.04 Trusty VM to run a script. In order to run correctly the script requires the package protobuf-compiler
version 3+ and the corresponding libprotobuf-dev
package to be installed. Unfortunately doing the obvious apt-get install protobuf-compiler libprotobuf-dev
gives me version 2.5 which is too old to compile the script.
Fortunately there is a PPA that provides version 3.4 for Trusty. I used add-apt-repository ppa:maarten-fonville/protobuf
to add the PPA with the appropriate apt-get update
but I still got the old version from archive.ubuntu.com
, not the PPA version.
I tried giving the PPA a higher priority using this /etc/apt/preferences
file as described here but I still got version 2.5.
There is a log of my script with the commands used. Line 506 adds the PPA, line 615 copies the preferences
file, line 617 makes the apt update
and line 719 installs the (incorrect) packages. Unfolding line 7 shows various system information.
How do I install protobuf-compiler
version 3+ on Ubuntu Trusty?
protobuf-compiler
was available here. – Chai T. Rex Jan 25 '18 at 22:38wget
the.dep
and thendpkg -i
it? I thoughadd-apt-repository ppa:maarten-fonville/protobuf
would essentially make those.dep
files available toapt
which then handles the rest. – nwp Jan 25 '18 at 22:44sudo apt-get install ./whatever.deb
. – Chai T. Rex Jan 25 '18 at 22:52