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
2 answers
85 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
  • 283
-1 votes
1 answer
88 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
  • 101
1 vote
0 answers
493 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
25 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
16 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
398 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
0 votes
0 answers
170 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
  • 1
0 votes
1 answer
183 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
78 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
29 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
0 votes
1 answer
900 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
0 votes
1 answer
713 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
  • 213
2 votes
2 answers
131 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
2k 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
3k 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
83 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
55 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
232 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
200 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
  • 563
0 votes
0 answers
61 views

Why did apt install dos2unix restart nginx?

# apt install dos2unix Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: dos2unix 0 upgraded, 1 newly ...
Daniël van den Berg's user avatar
1 vote
2 answers
385 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
0 votes
0 answers
640 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
1k 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
463 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
1k 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
  • 13
0 votes
0 answers
1k 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
449 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
  • 131
0 votes
0 answers
32 views

Automatize using bash downloading deb files and dependencies and later extracting them to a unique folder and compress it to use in a live filesystem

I am developing a Live filesystem and need to be able to download deb files with its dependencies which I manually do using: apt download $(apt-cache depends --recurse --no-recommends --no-suggests \ -...
Roberto Carlos Gonzalez's user avatar
0 votes
0 answers
1k 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
1 vote
1 answer
644 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
  • 311
0 votes
0 answers
188 views

apt update throws warnings - how to fix?

I'm migrating a website to a fresh Ubuntu 22 server hosted by Rackspace. I'm doing some initial config and hardening and I start with the usual: apt update apt upgrade The apt update command spits ...
S. Imp's user avatar
  • 536
1 vote
1 answer
1k 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
0 answers
70 views

Debian 10 fresh install => apt error "tiemout"

I'm trying to install sudo to allow users (like Ansible) to access the machine with sudo privileges though SSH. So far, I'm blocked with errors like this : "Impossible d'initialiser la connexion ...
Astra's user avatar
  • 1
0 votes
1 answer
309 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
0 answers
515 views

Ubuntu 22.04, Intel Xeon E5-2640 v3, getting "Illegal instruction" and "core dumped" error from apt

I have Ubuntu 22.04 Server, running on Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz When trying to install packages apt complains about unment dependencies and suggests running apt --fix-broken install: #...
PawelRoman's user avatar
0 votes
1 answer
880 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
289 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
0 votes
1 answer
4k views

error ModuleNotFoundError: No module named 'lsb_release' when trying to run lsb_release -a

Seeing the following output when trying to run lsb_release on Debian: (venv) vm-1671541226:/$ lsb_release -a Traceback (most recent call last): File "/usr/bin/lsb_release", line 25, in <...
opike's user avatar
  • 133
-1 votes
1 answer
153 views

Install .deb package only if version is higher

Is it possible to tell dpkg to only install a .deb if the new package version is higher than what's already installed on the system? Example: I have htop version 3.0.5 installed and I attempt to ...
Lev's user avatar
  • 158
-2 votes
1 answer
2k views

ubuntu: /bin/sh: apt: not found

I have a container on which I want to install ca-certificates, but despite being ubuntu, it doesn't recognize both apt and apt-get ~ # cat /proc/version Linux version 5.4.0-109-generic (buildd@ubuntu) ...
no746's user avatar
  • 97
1 vote
2 answers
2k views

apt-get fails to resolve url in docker container, even though the container can resolve it just fine!

This is such a strange situation. I'm trying to build an image, and apt-get update fails. Network works fine though. DNS is fine, I can even wget the same urls just fine!! See terminal output : ❯ ...
AntouanK's user avatar
  • 111
1 vote
1 answer
1k views

Why would Dpkg::Options --force-confold be ignored?

I have been trying to suppress an interactive dialog with regards to modified config files and conflicts. I have been all over the search results, and everyone keeps copy and pasting the same exact ...
timi's user avatar
  • 21
2 votes
1 answer
14k views

apt-get update error in Debian 11 "Temporary failure resolving" and also "Failed to fetch"

This is what I get when I run the apt-get update on my debian 11 server. Err:1 http://deb.debian.org/debian bullseye InRelease Temporary failure resolving 'deb.debian.org' Err:2 http://packages.sury....
tlholoheloh101's user avatar
2 votes
1 answer
792 views

How to install apt dependencies from setup tools?

I am trying to create deb package from python setup tools. To do that, I tried adding install_requires as in this link But it seems, this is for pip modules, not apt packages. How or where to set ...
user2331760's user avatar
0 votes
1 answer
184 views

Make nginx look for credentials in "Proxy-Authorization" header, so it works with apt

I have an nginx in front of an apt-cacher-ng. The nginx's job is to terminate HTTPS and take care of authentication. The issue is, that nginx will look in the Authorization header for credentials, but ...
toydarian's user avatar
  • 140
3 votes
2 answers
3k views

apt-get dist-upgrade keeping back packets

Running apt-get dist-upgrade on a Ubuntu 22.04.1 LTS results in various packages being kept back: root@localhost:/var/log/apt# apt-get dist-upgrade Reading package lists... Done Building dependency ...
shodanshok's user avatar
0 votes
1 answer
8k views

Message printing after I apt-get install or needrestart about services, containers, user sessions and VMs

I've just put Ubuntu 22.04 on my server, and when I execute apt-get install x(where x a package I want to download) or needrestart, I get this message that I haven't found an explanation for. Running ...
Costas M's user avatar
1 vote
0 answers
608 views

Ondřej Surý's PPA - php7.4-xdebug also installs php8

OS: Ubuntu 20.04 focal (on the Windows Subsystem for Linux) Kernel: x86_64 Linux 5.10.102.1-microsoft-standard-WSL2 Uptime: 1h 20m Packages: 1612 Shell: bash 5.0.17 WM: GTK Theme: Adwaita [GTK3] Disk: ...
Sylvester DeMouser's user avatar
3 votes
1 answer
1k views

When installing docker on Ubuntu, why isn't it as easy as apt-get install docker?

I've installed docker a dozen times on Ubuntu using the instructions on the docker website (7 commands including removing old versions, adding a gpg keychain etc). I always just powered through, but ...
jorfus's user avatar
  • 775
0 votes
0 answers
46 views

How are linux package are update internally is there a writeup around it

I work for a company that manage their own debian mirror. Today I was looking to update one of our packages on staging server i.e vnstat. The currently installed version is 1.18-2 and latest version 2....
Noobie's user avatar
  • 129

1
2 3 4 5
23