pkg-varnish-cache
pkg-varnish-cache copied to clipboard
varnish: Depends: libc6-dev but it is not installable
From @mboy1011 originally opened as https://github.com/varnishcache/varnish-cache/issues/3970
Expected Behavior
I want to install varnish/jammy 7.3.0-1~jammy amd64 on my Ubuntu 22.04.2 LTS Server Unfortunately I couldn't install it due to:
The following packages have unmet dependencies:
varnish : Depends: libc6-dev but it is not installable or
libc6.1-dev but it is not installable or
libc-dev
E: Unable to correct problems, you have held broken packages.
I've already followed the step-by-step installation here via the official manual instruction from Varnishcache.
Current Behavior
The following packages have unmet dependencies: varnish : Depends: libc6-dev but it is not installable or libc6.1-dev but it is not installable or libc-dev E: Unable to correct problems, you have held broken packages
Possible Solution
No response
Steps to Reproduce (for bugs)
- sudo apt-get update
- sudo apt-get install debian-archive-keyring
- sudo apt-get install curl gnupg apt-transport-https
- mkdir -p /etc/apt/keyrings/
- curl -fsSL https://packagecloud.io/varnishcache/varnish73/gpgkey | gpg --dearmor > /etc/apt/keyrings/varnishcache_varnish73-archive-keyring.gpg
- Create a file named: /etc/apt/sources.list.d/varnishcache_varnish73.list
- echo "deb [signed-by=/etc/apt/keyrings/varnishcache_varnish73-archive-keyring.gpg] https://packagecloud.io/varnishcache/varnish73/ubuntu jammy main \ndeb-src [signed-by=/etc/apt/keyrings/varnishcache_varnish73-archive-keyring.gpg] https://packagecloud.io/varnishcache/varnish73/ubuntu jammy main"
- sudo apt-get update
- apt install varnish -y
Context
To configure my Magento 2.4.6-p2 Instance to have a successful Full Page Cache using Varnish, which is advised for production servers, I just want to install it using the most recent version of libc6-dev where there's a recent security patch and depends on it.
Varnish Cache version
No response
Operating system
Ubuntu 22.04.2 LTS
Source of binary packages used (if any)
No response
Can't reproduce, this works (automated):
FROM ubuntu:22.04
RUN set -ex; \
apt-get update; \
apt-get install -yqq curl; \
curl -s https://packagecloud.io/install/repositories/varnishcache/varnish73/script.deb.sh | bash; \
apt-get install -yqq varnish; \
varnishd -V | grep 'varnish-7.3.0'
as does this (manual):
FROM ubuntu:22.04
COPY varnishcache_varnish73.list /etc/apt/sources.list.d/varnishcache_varnish73.list
RUN set -ex; \
apt-get update; \
apt-get install -yqq curl gnupg apt-transport-https; \
mkdir -p /etc/apt/keyrings/; \
curl -fsSL https://packagecloud.io/varnishcache/varnish73/gpgkey | gpg --dearmor > /etc/apt/keyrings/varnishcache_varnish73-archive-keyring.gpg; \
apt-get update; \
apt-get install -yqq varnish; \
varnishd -V | grep 'varnish-7.3.0'