Questions tagged [apt]

Debian's Advanced Packaging Tool whose main binary is apt-get. Most questions about APT are off topic for Stack Overflow, unless it is clearly related to a programming tool.

Advanced Packaging Tool, the Debian software package manager which keeps track of the software repositories for the system, which offers package dependency resolution, upgrade of the installed packages, download and installation of new software.

1492 questions
31
votes
4 answers

After Ubuntu 18.04 upgrade php7.2-curl cannot be installed

Upgraded to 18.04 from 16.04 today using do-release-upgrade -d During the upgrade I was informed that some packages would be removed, these included: Remove: libperl5.22 lxc-common perl-modules-5.22 php-imagick php7.1-curl php7.2-curl…
Arni J
  • 385
  • 1
  • 4
  • 9
31
votes
1 answer

How to install "make" in ubuntu?

I'm trying to install "yum" or "apt-get" into my system "ubuntu centOS". I did download the binary files for these two programs from the internet using the command wget. but after decompressing the files using the command "tar -zxvf "filename" ,then…
kadora
  • 325
  • 1
  • 5
  • 8
27
votes
4 answers

JDK is installed on mac but i'm getting "The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt." sudo apt update

I'm trying to run the command sudo apt update on my terminal in MacOS I'm getting this message in response: The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on…
User9123
  • 675
  • 1
  • 8
  • 20
27
votes
8 answers

python add-apt-repository: ImportError: No module named 'apt_pkg'

When I try: sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next in Ubuntu, the terminal show this error message: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in from…
ding
  • 271
  • 1
  • 3
  • 4
27
votes
9 answers

Listing all user-installed packages in Debian

For a cyber security competition I participate in, I'm given a Debian virtual machine with many packages installed and asked to clean extraneous or malicious packages. In the past, I've used dpkg -l | grep [searchterm] and a list of common packages…
Thorne Garvin
  • 410
  • 1
  • 5
  • 12
25
votes
3 answers

How to make apt-get accept New config files in a unattended install of debian from Repo

I am writing a script for a unattended install of a package that is in our Repo, It is a Software Package with one of the Debians marked config. Is there any option that I can pass to apt-get/aptitude so that it accepts the new Config…
RamNat
  • 537
  • 2
  • 7
  • 14
25
votes
7 answers

Why cannot add PPA deadsnakes?

I have ubuntu version 20.04 and I would like to install python 3.6 from the shell. After sudo apt install software-properties-common I am trying to use the add-apt-repository ppa:deadsnakes/ppa command but I am getting this error: Cannot add PPA:…
nenno lillo
  • 537
  • 1
  • 4
  • 12
25
votes
1 answer

How to install a package using the python-apt API

I'm quite a newbie when it comes to Python, thus I beg foregiveness beforehand :). That said, I'm trying to make a script that, among other things, installs some Linux packages. First I tried to use subopen as explained here. While this can…
AlejandroVK
  • 7,373
  • 13
  • 54
  • 77
24
votes
4 answers

"InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)" when updating package list

Here is what I see in my terminal: user@user-OptiPlex-9020:~$ sudo apt-get update Ign http://extras.ubuntu.com trusty InRelease Ign http://in.archive.ubuntu.com trusty InRelease Get:1…
Swaroop
  • 1,219
  • 3
  • 16
  • 32
24
votes
4 answers

"gpgkeys: key 7F0CEB10 not found on keyserver" Response while try to install mongodb on Ubuntu

I am trying to install mongodb on my Ubuntu 12.04 Desktop edition. Firstly I hope there isn't any issue w.r.t. installing mongodb on Ubuntu Desktop edition. I am following the mongodb manual to install it on my Ubuntu machine. When I try to import…
kausal_malladi
  • 1,542
  • 3
  • 14
  • 30
24
votes
4 answers

Checking for installed packages and if not found install

I need to check for installed packages and if not installed install them. Example for RHEL, CentOS, Fedora: rpm -qa | grep glibc-static glibc-static-2.12-1.80.el6_3.5.i686 How do I do a check in BASH? Do I do something like? if [ "$(rpm -qa | grep…
amanada.williams
  • 467
  • 2
  • 4
  • 9
23
votes
9 answers

dpkg error: pycompile: not found

sudo apt-get remove --purge mysql-server mysql-client mysql-common I am getting the following error as I try to remove mysql using the above command: Reading package lists... Done Building dependency tree Reading state information...…
Kalyanam Rajashree
  • 652
  • 2
  • 11
  • 23
22
votes
3 answers

Stuck with apt --fix-broken install (libc6:amd64 package post-installation)

My system runs inside WSL, I upgrade it at least every few days. I stuck with one package installation, and looking for a way to solve this: $ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state…
Adam Mierzwiak
  • 350
  • 2
  • 6
  • 18
21
votes
2 answers

GPG error: https://apt.releases.hashicorp.com bionic InRelease: The following signatures couldn't be verified because the public key is not available

I ran this command to update packages in my ubuntu VM. sudo apt-get update It gave me the below error at the end. Err:5 https://apt.releases.hashicorp.com bionic InRelease The following signatures couldn't be verified because the public key is…
Thilina Ashen Gamage
  • 1,367
  • 1
  • 12
  • 21
21
votes
3 answers

How can I manage keyring files in trusted.gpg.d with ansible playbook since apt-key is deprecated?

Before apt-key was deprecated, I was using Ansible playbooks to add and update keys in my servers. At the moment, apt-key no longer updates the keys. In few searches, I found that I need to use gpg now. However, I have many servers and I don't want…
ecemnaz
  • 311
  • 1
  • 2
  • 3