pkg-varnish-cache icon indicating copy to clipboard operation
pkg-varnish-cache copied to clipboard

varnish: Depends: libc6-dev but it is not installable

Open nigoroll opened this issue 1 year ago • 1 comments

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. image

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)

  1. sudo apt-get update
  2. sudo apt-get install debian-archive-keyring
  3. sudo apt-get install curl gnupg apt-transport-https
  4. mkdir -p /etc/apt/keyrings/
  5. curl -fsSL https://packagecloud.io/varnishcache/varnish73/gpgkey | gpg --dearmor > /etc/apt/keyrings/varnishcache_varnish73-archive-keyring.gpg
  6. Create a file named: /etc/apt/sources.list.d/varnishcache_varnish73.list
  7. 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"
  8. sudo apt-get update
  9. 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

nigoroll avatar Aug 25 '23 17:08 nigoroll

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'

gquintard avatar Aug 25 '23 18:08 gquintard