Я пытаюсь установить кэш Varnish на Ubuntu 14.04 и получаю это:
The following packages have unmet dependencies:
varnish : Depends: libjemalloc1 (>=2.1.1) but it is not installable
Depends: gcc but it is not installable
E: Unable to correct problems, you have held broken packages.
Вот как я это сделал:
apt-get install apt-transport-https
apt-get install curl
curl https://repo.varnish-cache.org/ubuntu/GPG-key.txt | apt-key add -
echo "deb https://repo.varnish-cache.org/ubuntu/ trusty varnish-4.0" >> /etc/apt/sources.list.d/varnish-cache.list
apt-get update
apt-get install varnish
Я только что установил Trusty в VMWare ВМ провести тестирование с Nginx и Varnish. Любые идеи о том, как исправить?
Вывод из apt-cache policy libjemalloc1
libjemalloc1:
Installed: (none)
Candidate: (none)
Version table:
То же, что с
apt-cache policy gcc
libjemalloc1
находится в репозиториях вселенной
sudo apt-add-repository universe
gcc
, находится в основных репозиториях
sudo apt-add-repository main
После этого
sudo apt-get update
sudo apt-get install varnish