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
1 answer
5k 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
273 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
3k 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
17k 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
3 votes
1 answer
964 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
222 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
  • 50.5k
0 votes
1 answer
9k 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
684 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
2k 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
  • 785
0 votes
0 answers
48 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
5 votes
3 answers
18k views

Ubuntu Server 21.04 Update Error On apt update

I was trying to install a deb package which refused to run because of dependencies, after failed attempt to install the dependencies or OS updates i uninstalled the deb package. since there were a ...
auwalup's user avatar
  • 53
0 votes
0 answers
897 views

Volume group "luks" not found

OS: Parrot OS VM: Qemu Filesystem: Btrfs This is caused due to an improper reboot before full apt upgrade. After the reboot and entering in the Luks partition password. It successfully decrypts and ...
Zetsu's user avatar
  • 1
1 vote
0 answers
178 views

After iptables to nftables conversion, unable to connect to http nextcloud server and apt doesn't connect

I want to enable access to my nextcloud server and be able to use apt update. I used to be able to before my iptables to nftables conversion. However, after the conversion, its no longer possible. ...
LtMuffin's user avatar
  • 121
16 votes
8 answers
84k views

Unable to run `apt update` on Ubuntu 21.10

I am experiencing the following error when running apt update which is causing me to be unable to update the Ubuntu server. ~$ sudo apt update Ign:1 http://security.ubuntu.com/ubuntu impish-security ...
Blake Drumm's user avatar
0 votes
0 answers
127 views

apt clean apt autoremove

So i would like to remove unwanted files ( /var/cache and old kernels in /boot) to free up some space using puppet script and add this script to puppet master to automatically run once every month. I ...
sameer's user avatar
  • 19
0 votes
1 answer
959 views

Cloud-init / cloud-config to install node.js

From reading the cloud-init docs (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#apt-configure), it appears that this user-data should add the Nodesource source and key for apt, and ...
Doug Reeder's user avatar
1 vote
1 answer
3k views

Use ansible to remove all packages associated with a repository

I use the ansible apt_repository module to add and remove Ubuntu repositories. Sometimes, I find it necessary to switch from one repository to an alternate one. And I'd like to have all packages from ...
tinlyx's user avatar
  • 119
0 votes
1 answer
3k views

Conflict between mariadb-server-core-10.3 and mariadb-server-10.3 1:10.3.30+maria~bionic on Ubuntu 20

I'm trying to upgrade my server and I'm in a weird state where mariadb-server-core-10.3 and mariadb-server-10.3 1:10.3.30+maria~bionic is conflicting with each other, and possibly maybe involving ...
Snap E Tom's user avatar
3 votes
2 answers
2k views

`dpkg -l` to only show installed packages?

On Debian/Ubuntu, dpkg can show me packages, include the version and what's installed (e.g. dpkg -l postgresql\*). But that shows all packages that it knows about, whether installed or not. Is it ...
Amandasaurus's user avatar
  • 32.3k
0 votes
0 answers
373 views

apt-get stuck at downloading deb file at 33%, but wget+dpkg is OK

I use Google Cloud Artifact Registry to serve a public deb package. Recently apt-get stucks when downloading the deb file at 33%: # apt-get install pkg_name_placeholder Reading package lists... Done ...
idy's user avatar
  • 101
0 votes
0 answers
589 views

Install pip3 on new Ubuntu Server 22.04 install (Raspberry Pi)

I have just installed Ubuntu Server 22.04 LTS on my RPi, and I cannot for the life of me get pip3 to install. (It should already be there, no?) Here's my /etc/os-releasse: PRETTY_NAME="Ubuntu 22....
Jeff Hemmen's user avatar
5 votes
1 answer
2k views

Disable Ubuntu 22.04's scaning processes / candidates after package upgrades

Ubuntu 22.04 scans running processes (for use of old libraries) after doing apt. It will say 'Scanning processes' and 'Scanning candidates': We have servers that (unfortunately) need to run tens of ...
Halfgaar's user avatar
  • 8,194
0 votes
1 answer
2k views

Debian: how to install a package without a specific dependency (git without Perl)

I am trying to install an apt package without one of its dependencies (specifically, git without Perl to reduce Docker image size by >50MB). I can think of two options: installing the package ...
Lukasz Guminski's user avatar
0 votes
1 answer
199 views

install mysql in debian 9

I need to install MySQL 7.5 on Debian 9 stretch, I tried to download it using PPA but when I try to update and complete download I get error apt-key expire. Err:2 http://repo.mysql.com/apt/debian ...
sos5020's user avatar
  • 101
1 vote
2 answers
2k views

apt-get upgrade vs unattended-upgrades under ubuntu 20.04

unattended-upgrades seems to skip certain upgrades, e. g. google chrome upgrade. A subsequent call of apt-get upgrade then finds and installs the ugrade. Does this mean, I must schedule apt-get ...
user3599802's user avatar
0 votes
0 answers
1k views

Automating options when using apt-get install

I have this step in my dockerfile RUN apt install libpq-dev libxml2-dev libxslt1-dev libldap2-dev libssl-dev -y And when I build it, it stuck with the prompts How do I get pass this with pre-...
James Lin's user avatar
  • 161
0 votes
1 answer
1k views

How to install Google Cloud Ops Agent on Ubuntu 21.10?

I'm attempting to install Google Cloud Ops Agent on Ubuntu via Docker and running into a couple issues. Firstly, running the following returns an error saying that some GPG signatures can't be ...
Louis Sayers's user avatar
0 votes
3 answers
677 views

Debian: how to put two versions of libcurl on one system?

I'm trying to migrate two web apps on single server(debian10), both require different versions of php, and both require cURL extensions to work properly. php5.6-curl uses libcurl v3 php8.1-curl uses ...
Robert Grubba's user avatar
5 votes
5 answers
9k views

Ansible OpenSSL Error with apt module

This is rather odd, I noticed it yesterday on one of my target machines, and today its happening on the rest of them too. I also tried running the playbook from a different machine and the same thing ...
RedHack's user avatar
  • 153
0 votes
0 answers
134 views

How to configure a double proxy jump for apt install?

I need to install packets in a KVM guest (vm) but the KVM host (hypervisor) doesn't have internet. I already know how to configure an ssh+apt proxy to give apt install capabilities to computers in a ...
user161458's user avatar
9 votes
3 answers
19k views

How to cleanup /usr/lib/modules and /usr/lib/x86_64-linux-gnu?

I executed the command apt autoremove but those folders persist. As the command "du -h -x --max-depth=1 /usr/lib | sort -hr | head -n 10" showed me, they are currently using almost 1G each: ...
Raul Chiarella's user avatar
0 votes
2 answers
7k views

Stuck on "update-initramfs: Generating /boot/initrd.img-5.4.0-92-generic"

I have a problem with uninstalling packages on my server(20.04 LTS). When I run apt remove metricbeat receive this message: root@elk:/home/elk# apt remove metricbeat Reading package lists... Done ...
Siavash Fazli's user avatar
0 votes
0 answers
385 views

I want to update a debian package, but apt deletes packages that are needed

I can see that my xfce4-panel version didn't get upgraded to 4.16 (it's still 4.12) after upgrading debian from buster to bullseye. So I wrote sudo apt install xfce4-panel to try to upgrade xfce4-...
Mikkel Rev's user avatar
0 votes
1 answer
228 views

DEBIAN 10 apt-get, sudo issues

I'm currently facing some issues with my dedicated server. I unfortunately removed some packages from my server yesterday. And now the man-db on my server seems not to work properly. This issue maybe ...
Kuezy's user avatar
  • 13
0 votes
0 answers
1k views

Zabbix installation repository does not have a release file?

I am attempting to install the Zabbix monitoring software on an Ubuntu 20.04 server. I am following the instructions here: https://www.zabbix.com/download?zabbix=6.0&os_distribution=ubuntu&...
jmahood's user avatar
  • 11
11 votes
5 answers
71k views

Apt-Get Update Failing because of Certificate Validation

Using Ubuntu Focal fossa. I was trying to install a checkpoint ssl software for VPN, but seems like something messed up all my certificates. Now whenever I try sudo apt-get update I get the following ...
Della's user avatar
  • 215
0 votes
3 answers
1k views

How can I reliably discover CVEs relating to installed packages

I have a web application running on Ubuntu Server 18. One of its dependencies is Ghostscript. The latest version I'm able to install via apt-get is 9.26, but I've learned that this version has a ...
griswoldbar's user avatar
0 votes
0 answers
644 views

skip openssh-server configuration on apt-get upgrade

When I'm trying to upgrade Ubuntu 20.10 on Linode, it stucks on one configuration prompt. How can I skip it? Using -qy didn't help, as shown below. The code: set DEBIAN_FRONTEND=noninteractive apt-get ...
Dani-Br's user avatar
  • 101
1 vote
2 answers
2k views

sudo to allow apt-get install of remote packages, but forbidding arbitrary commands

I'm looking for a way to allow a user to install (only remote) packages via apt-get (or another mechanism?) but not allow them to run arbitrary commands as root. I can get some of the way there via /...
Michal Charemza's user avatar
0 votes
1 answer
31 views

There is a log for update package lists?

I am looking for a log for something like "apt update", no "apt upgrade". Can anyone help me?
brudel's user avatar
  • 1
7 votes
2 answers
743 views

Upgrading Debian Linux to a specific patch level

I have a few dozens of Debian boxes which I want to keep up to date in a deterministic fashion, and also follow the Engineering => Pre-Prod => Prod routine with a deterministic staging process. ...
bobah's user avatar
  • 171
0 votes
0 answers
569 views

atftpd service start and removal error

I am facing error while doing apt --fix-broken install I searched on google but no luck. After this operation, 5,120 B of additional disk space will be used. Do you want to continue? [Y/n] y ...
Sanketh MJ's user avatar
1 vote
2 answers
3k views

Update PGP key in self hosted apt repository

We are using the Sonatype Nexus Repository Manager to host apt repositories. The GPG key of one of them has expired recently and needed to be updated. What I thought would be sufficient was to ...
Croolman's user avatar
  • 131
1 vote
1 answer
4k views

How to install packages from command line on Suse

What is the Suse version of apt-get or yum? Or how do I get one of them installed in order to install software packages from the command line? A fairly intense session of googling suggests that it may ...
Bazer Con's user avatar
2 votes
1 answer
1k views

debian - packages have unmet dependencies

i am having Debian 11, and i am trying to install some php libs like mysql: command: sudo apt install php-mysql result: Reading package lists... Done Building dependency tree... Done Reading state ...
mohamad zbib's user avatar
0 votes
1 answer
286 views

MySQL errors after reinstalling

At first, I wanted to reinstall MySQL to repair ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) problem with command apt-get purge mysql-server,...
Thwade's user avatar
  • 1
1 vote
2 answers
283 views

load balancer mark "unhealty" new group member instance (ubuntu) after dist-upgrade

I've a some VMs (working as web server) behind an instance group on my GCloud. As usual maintenance I've update (apt dist-upgrade) my "vm-source-image", created a new template and add it to ...
Ivan Buttinoni's user avatar

1
2
3 4 5
24