Skip to main content

Questions tagged [apt]

APT, the Advanced Packaging Tool, is Debian's high-level package management system. It is also used by several other Linux-based and Debian-based operating systems.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Upgrading Debian Debootstrap-MinBase Docker-Images from Buster to Bookworm: Repository not signed

I am currently in the process of upgrading our docker-images from debian 10 (buster) to debian 12 (bookworm). We create our own base-images with debootstrap: debootstrap --verbose --arch=amd64 --...
Gerrit Addiks's user avatar
-1 votes
1 answer
47 views

Which PHP package version is currently in use

When I install php package with sudo apt install php-mysql. It installs two packages. Which one is in use? Are these really two packages or php-mysql is an alias like a symlink current package in use? ...
Łukasz Korona's user avatar
0 votes
0 answers
1k views

Apt issues on Ubuntu 24.04 with noble-backports source

I run apt-get upgrade --print-uris --yes -t noble-backports and get the following output & error: E: The value 'noble-backports' is invalid for APT::Default-Release as such a release is not ...
Deckard's user avatar
  • 198
0 votes
1 answer
144 views

Check if package exists in repository that is not on my sources.list?

TL;DR: How can I check if a package exists in a repository that's not on my sources.list? What I want: Most answers I'm finding assume the repo I need to check is already in my /etc/apt/sources.list. ...
ᴍᴇʜᴏᴠ's user avatar
1 vote
0 answers
77 views

debian:jessie container, apt-get update 100% CPU in PhotonOS host

In a Photon OS machine in VMware ESXi: docker run debian:jessie apt-get update The apt-get update process takes several hours to finish, using ~100% CPU. Even with an empty /etc/apt/sources.list. ...
nuno's user avatar
  • 111
2 votes
2 answers
694 views

Linux server: apt-get update "Could not get lock" error

I have a Google Cloud machine. Every few days, I SSH into the VM and run a handful of commands. Over the past few days, whenever I run sudo apt-get update, I get the following errors: E: Could not get ...
SteveAlbertsonFromNY's user avatar
1 vote
2 answers
377 views

apt-mirror is failing to read and use the http://archive.ubuntu.com/ubuntu/dists/jammy/Release file

I have a problem with apt-mirror. I am tying to set up an internal Ubuntu mirror for my company. My company using a Squid Proxy: internal IP 10.###.###.5:3128 Our proxy does not need a user/pass. I am ...
Richard E's user avatar
  • 131
-2 votes
1 answer
324 views

WSL apt install jdk results in 404 Not Found [closed]

Windows 11 WSL. Installing JDK 11 results in the error: 404 not found. wsl> sudo apt install openjdk-11-jdk-headless Reading package lists... Done Building dependency tree... Done ...
eastwater's user avatar
  • 109
0 votes
0 answers
289 views

Offline APT mirror with Ubuntu updates - how can I build them?

I'm looking for a way to create a mirror of the Official ubuntu apt archive for jammy (22.04) / AMD64. The mirror should contain updates for all packages that go into a standard Ubuntu server ...
Niels B.'s user avatar
  • 383
1 vote
3 answers
835 views

Can I rely on `curl` being installed on Debian/Ubuntu? How could I find out?

Is curl installed by default on Debian & Ubuntu (in 2024)? How could I answer this question myself? I am writing the install instructions for software, part of which requires running a script that ...
Amandasaurus's user avatar
  • 32.7k
1 vote
1 answer
230 views

Running hardened Ubuntu 22.04 desktop in an air gapped environment

I am trying to run Ubuntu 22.04 in an a semi Air Gapped environment. The OS has been hardened using CIS hardening. There is no direct connection to the internet, but there is a Nexus Repo server ...
PrestonDocks's user avatar
3 votes
2 answers
1k views

How to make sure installing updates using apt does not restart networking services?

I have an Ansible playbook that I use to configure new Linux VMs. I was recently building a new VM with Ubuntu 22.04. The playbook will write some configuration files related to networking and whatnot,...
Peter Walker's user avatar
0 votes
0 answers
27 views

apt purge not removing masked service

Facing an issue while removing postfix. I ran "apt purge --remove postfix" that didn't clean up masked service and service status shows it masked. Can anyone please help to address the fix.
Rama's user avatar
  • 87
0 votes
1 answer
508 views

Nexus Repository OSS: apt hosted repo gpg signing

Nexus Repository OSS version: 3.63.0-01 We have created a hosted apt repository and we keep getting these messages on apt update: E: Failed to fetch <apt-repo-url>/dists/jammy/InRelease 401 ...
mik42's user avatar
  • 1
0 votes
2 answers
3k views

Debian Bookworm E: Unable to locate package

I'm getting a lot of "E: Unable to locate package" errors when I try to install some popuplar packages... in my /etc/apt/sources.list file I have these lines : deb http://deb.debian.org/...
Monsquid's user avatar
0 votes
0 answers
549 views

Installing APT via dpkg causes ldconfig not found in path error

The situation began with an issue preventing me from updating, upgrading, or installing anything using apt. In an attempt to resolve this, I utilized dpkg to remove apt and then sought to reinstall it ...
StackExchange Account's user avatar
0 votes
1 answer
405 views

Cloud Init can't create Apt source from k8s.io due to 302 redirect

I'm attempting to add the k8s.io apt package source to a VM using cloud-init, but the URL provided from the docs does a 302 redirect, and gpg doesn't like that. cloud-init config.yml: apt: ...
John Manko's user avatar
0 votes
0 answers
585 views

Cloud Init isn't adding Apt sources BEFORE apt update is executed

I'm trying to install packages from docker and k8s.io, but package_update: true isn't using the newly added sources, and finding those packages fails. Here is part of the cloud-init config: apt: ...
John Manko's user avatar
0 votes
2 answers
710 views

How do I re-run the post-install set up script after making the wrong choice in apt install mailutils?

Yes - I have read this similar Q and all the answers. Unfortunately that was from years ago, and none of the answers work any longer. I'm running an Ubuntu server 22.04, and installed mailutils. Near ...
Seamus's user avatar
  • 295
-1 votes
1 answer
1k views

How to upgrade kubernetes repos on ubuntu

I have two Kubernetes clusters, one on Ubuntu 20.04.6 LTS (first) and another on Ubuntu 22.04.3 LTS (second). Both of them are using Kubernetes 1.26.10. I try to upgrade both to version 1.27.x, but ...
ajlind's user avatar
  • 111
1 vote
0 answers
1k views

How do I know whether to accept APT repository changes?

When I run sudo apt update (on a DigitalOcean Ubuntu server), I get this message: E: Repository 'https://packages.redis.io/deb jammy InRelease' changed its 'Origin' value from '' to 'packages.redis.io'...
Jeff's user avatar
  • 11
0 votes
1 answer
44 views

In apt, How to move package from direct package to transitive package?

I'm looking for a command that: remove/purge a package if it is not a transitive package of another install package declare a directly installed package as installed-by-transitivity if it is a ...
tribbloid's user avatar
  • 103
0 votes
0 answers
23 views

Ubuntu - Install Non-Latest Package as a Dependency

I'm trying to build a debian package using FPM. This package, we'll call it Package A, has a custom-built dependency, Package B. Let's say Package A.1 depends on Package B.1. If B.2 is added to the ...
Mitch's user avatar
  • 1
1 vote
1 answer
4k views

Cannot "apt upgrade" due initramfs error - "update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1."

I have a Ubuntu 22.04 VM with CloudInit on a Proxmox Host which worked well, but recently I got often the issue after some time (some days, even after reinstalling) that I can't upgrade packages due ...
Jonathan's user avatar
1 vote
0 answers
604 views

Ansible apt "No package matching 'libgl1-mesa-glx' is available" but "sudo apt get install -y libgl1-mesa-glx" succeeds

I have a task in a playbook that is failing. The task is as follows: - name: Install Zoom dependency apt: name: libgl1-mesa-glx state: present The output is: TASK [role-name : Install Zoom ...
TSip's user avatar
  • 11
0 votes
1 answer
704 views

Why doesn't apt full-upgrade upgrade this upgradable package?

When I run apt update on my Debian 11 bullseye installation (I haven't gotten around to upgrade to bookworm), at the end of its output it says: 1 package can be upgraded. Run 'apt list --upgradable' ...
Roel Schroeven's user avatar
1 vote
1 answer
2k views

Collect packages versions with ansible

Hi friends hope you're being well. I got this very basic task i need to accomplish via ansible but i'm stuck with variable resiter : i need to collect some packages version with ansible and display ...
infoman33's user avatar
0 votes
0 answers
93 views

apt sources.list ssh://[REMOTE REPO URL] getting connection timeout

We have created custom package repository for our edge device on the remote server. We have specified the url in sources.list as below sources.list file This link was working fine earlier and we were ...
cgoma's user avatar
  • 1
2 votes
2 answers
13k views

Docker repository does not have a release file for apt-get update on debian bullseye

Trying to get an updated / current version of docker on debian bullseye, I get: $ sudo apt-get update ... Ign:14 https://download.docker.com/linux/ubuntu bullseye InRelease Err:15 https://download....
Gary Aitken's user avatar
1 vote
1 answer
4k views

Apt asks me "Which services should be restarted?", but won't accept my answer

Restarting services... Daemons using outdated libraries -------------------------------- 1. containerd.service 4. fail2ban.service 7. networkd-dispatcher.service 10. systemd-logind.service ...
Alex's user avatar
  • 243
2 votes
2 answers
627 views

How to get a complete file list for all packages?

I tried using apt-file list --regexp ".*", but it's not working, probably because the returned content is too extensive.
OffIGoThen's user avatar
0 votes
0 answers
3k views

Can't install php7.4-dev on Ubuntu 18.04

Trying to install php7.4-dev extension, but I'm getting E: Unable to locate package php7.4-dev E: Couldn't find any package by glob 'php7.4-dev' E: Couldn't find any package by regex 'php7.4-dev' ...
Abdulah Abutouq's user avatar
2 votes
1 answer
8k views

How can I write a Dockerfile based on Debian Slim in which 'apt-get update' doesn't fail with public key errors?

The build server is Ubuntu 16.04, patched recently with sudo apt update && sudo apt upgrade. docker version says: Version: 18.06.0-ce API version: 1.38 Go version: go1....
jlmt's user avatar
  • 207
0 votes
0 answers
196 views

Unable to apt update while sever is available

I just installed debian 11 so want to update it. I do sudo apt update but get few strings like Err:1 http://deb.debian.org/debian bullseye InRelease I have tried to replace deb.debian.org with the ...
bruh's user avatar
  • 1
0 votes
0 answers
101 views

Is there a way to pin a version of sudo apt upgrade for the whole Os/all packages?

Hi I'm writing some bash scripts to install some VMs I run... sudo apt update -y sudo apt upgrade -y Those work fine... But is there a way to make sure that if I run those 2 commands somewhere in the ...
user432024's user avatar
0 votes
0 answers
796 views

Package 'php-pear' has no installation candidate

I am trying to install apt install php-pear and I get this error message: Reading package lists... Done Building dependency tree Reading state information... Done Package php-pear is not ...
theplau's user avatar
  • 107
1 vote
1 answer
673 views

Determine available architectures of an apt repo without adding as a source

When working with deb (apt) package repos, you can sometimes browse them over http to determine what is available across different architectures (amd64, arm64, etc). For example, Ubuntu gives a file ...
Rino Bino's user avatar
  • 652
2 votes
2 answers
1k views

Install software on Ubuntu using apt without root?

I’ve got accounts on many HPC clusters. The machines have a minimal install, and the admins won’t add much else. I need to install lots of typical software. Normally I’d do this with apt, but of ...
projectshave's user avatar
1 vote
0 answers
2k views

Setup proxy with local CA certificate on Ubuntu 20.04

In our company, we have a proxy server with a self-signed CA certificate implementing MITM inspection. No internet connection is possible without this proxy server. My certificate installation process ...
Green绿色's user avatar
0 votes
0 answers
3k views

Using apt-get update in Dockerfile is not working

In my Mac, I'm running minikube, version minikube version: v1.24.0 commit: 76b94fb3c4e8ac5062daf70d60cf03ddcc0a741b with VirtualBox, with this command minikube start --vm-driver virtualbox --docker-...
Carabes's user avatar
  • 101
1 vote
1 answer
1k views

Cache update error using playbook

I keep getting this error when running my playbook on Ubuntu 22.04LTS server and have been trying to fix it for sometime now but aren't making progress. fatal: [MY IP]: FAILED! => {"changed&...
Haha Hehe's user avatar
0 votes
1 answer
2k views

Cannot install kubectl on Ubuntu - GPG Error

Hi I'm trying to install kubectl following the native package install instructions on the official site, but I get the following error when I try to update apt package list before installing kubectl: $...
sctx's user avatar
  • 33
0 votes
0 answers
3k views

What could be the reason that `apt update` says certificate is NOT trusted whereas curl says `SSL certificate verify ok`

I am trying to add docker to my Debian 11 bullseye installation. until now, I have ran - apt clean apt update update-ca-certificates apt-get install -y ca-certificates apt reinstall ca-certificates ...
Nir O.'s user avatar
  • 111
1 vote
1 answer
1k views

Cannot downgrade linux-image-amd64

Some time ago, I wanted to try the 5.10.127-2~bpo10+1 kernel on Debian 10 Buster system. However, that kernel was not maintained nor patched by Debian any longer. Now, new 4.19.x kernels no longer ...
mt42's user avatar
  • 141
0 votes
0 answers
3k views

How do I fix amdgpu and amdgpu-dkms packages not installing?

I'm trying to install the amdgpu package and it throws a bunch of errors: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were ...
Mach's user avatar
  • 1
2 votes
1 answer
1k views

Apt: list packages installed from a particular "component" (main/contrib/non-free)

I'd like to check which packages were installed from non-free component on my server, following the recent announcement by the Debian team https://www.debian.org/releases/bookworm/amd64/release-notes/...
nodakai's user avatar
  • 331
1 vote
1 answer
2k views

nodejs installation error in ubuntu

I am trying to install nodejs on a newly built Ubuntu VM(Ubuntu 22.04.1 LTS), but getting the below error. Preparing to unpack .../nodejs_16.19.1-deb-1nodesource1_amd64.deb ... Unpacking nodejs (16.19....
Aryasindhu Sahu's user avatar
0 votes
1 answer
800 views

Debain apt missing Ubuntu keyring?

Im on Kali Linux and the other day I was installing some packages with apt so I could run R code (if I remember correctly I installed r-base) and ever since then my apt has been acting up. Whenever I ...
Salty Sodiums's user avatar
0 votes
1 answer
2k views

What is the equivalent to "sudo apt autoremove" in CentOS?

I read this but there's no apt command in CentOS. So, how can I remove unused packages in CentOS?
xesoh43966's user avatar
0 votes
1 answer
384 views

Ubuntu has wrong versions of packages can't upgrade python

I've just upgraded my Ubuntu from focal(20.04) to jammy(22.04), and now my python is broken. which causes a lot of headache all over, like Apt wont update and some applications won't start. libpython3....
Nijboer IT's user avatar

1
2 3 4 5
24