Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nigoroll opened this issue Aug 25, 2023 · 1 comment
Open

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

nigoroll opened this issue Aug 25, 2023 · 1 comment

Comments

@nigoroll
Copy link
Member

nigoroll commented Aug 25, 2023

From @mboy1011 originally opened as varnishcache/varnish-cache#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

@gquintard
Copy link
Member

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants