Estou executando o Ubuntu 17.04, "zesty".
Eu preciso instalar a versão 8 do Google Protocol Buffer.
Eu posso encontrar o pacote em link
As instruções indicam que o aptitude é a maneira preferida de baixar e instalar o pacote.
Adicionei a seguinte linha ao final de /etc/apt/sources.list
:
deb http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf trusty main
Então corro o aptitude:
$ sudo aptitude install libprotobuf8=libprotobuf8_2.5.0-9ubuntu1_amd64.deb
Unable to find a version "libprotobuf8_2.5.0-9ubuntu1_amd64.deb" for the package "libprotobuf8"
Unable to apply some actions, aborting
$ sudo aptitude install libprotobuf8=2.5.0-9ubuntu1
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
O uso do apt-get também não funciona:
$ sudo apt-get install libprotobuf8=2.5.0-9ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Can't find a source to download version '2.5.0-9ubuntu1' of 'libprotobuf8:amd64'
Quando eu corro sudo apt-get update
vejo
...
Err:3 http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf trusty/main amd64 Packages
404 Not Found
...
W: The repository 'http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf trusty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://mirrors.kernel.org/ubuntu/pool/main/p/protobuf/dists/trusty/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
No entanto, /var/lib/dpkg/status
mostra:
Package: libprotobuf8
Status: install ok config-files
Section: libs
Installed-Size: 1083
Architecture: amd64
Multi-Arch: same
Source: protobuf
Version: 2.5.0-9ubuntu1
Config-Version: 2.5.0-9ubuntu1
Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.3), zlib1g (>= 1:1.1.4)
This package contains the runtime library needed for C++ applications.
Homepage: https://code.google.com/p/protobuf/
Original-Maintainer: Robert S. Edmonds <[email protected]>
No entanto, não consigo encontrar libprotobuf.so.8 em nenhum lugar do sistema.
O que estou fazendo de errado?