Install caffe error: Unable to locate package libprotobuf-dev

报错:E: Unable to locate package libprotobuf-dev

报错:hong@hong-virtual-machine:~$ sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libprotobuf-dev
E: Unable to locate package libleveldb-dev
E: Unable to locate package libsnappy-dev
E: Unable to locate package libopencv-dev
E: Unable to locate package libhdf5-serial-dev
E: Unable to locate package protobuf-compiler
Insert picture description here

Solution one:

Update

sudo apt update

Solution two:

Update

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Solution three:

Check whether the ubuntu in your virtual machine is connected to the Internet

Insert picture description here

Guess you like

Origin blog.csdn.net/m0_37882192/article/details/109564556