Questions tagged [apt]
The Advanced Packaging Tool (APT) is a package management system for Debian, and a set of tools for manipulating that system.
483
questions
0
votes
1
answer
80
views
what packages does an `apt` source.list provide?
Is there a way to tell what packages are provided by an /etc/apt/sources.list* entry?
I see that apt-cache policy '*' lists all packages provided by all sources, which could be parsed, but that's... ...
1
vote
1
answer
5k
views
Reinstall anonsurf GUI on parrot
I deleted anonsurf gui thats installed by default on my parrot os.
I saw many articles on how to install it on kali but none on parrot.
Please help.
1
vote
1
answer
206
views
Raspberry - APT : host not found - Can not update - DNS resolution issue
Since a few weeks, I have some troubles to update apt repositories on many Raspberry / Raspbian devices.
I got DNS resolution issues, on any mirror I've tried in /etc/apt/sources.list when I use apt-...
2
votes
1
answer
3k
views
Unable to complete apt update | GPG Error in Ubuntu 20.04
I decided to do apt update one day and received the following error message. I tried Googling it and trying some fixes without much luck. Wondering if someone has dealt with this before or knows of a ...
1
vote
1
answer
943
views
Cannot use apt on WSL2 but ping works
I'm trying to use a WSL2 installation of Ubuntu.
apt-get does not work. For example if I want to install net-tools I obtain
daniele@IOS-PC:~$ sudo apt-get install net-tools
Reading package lists... ...
0
votes
1
answer
5k
views
sudo apt-add-repository | gpg: no valid OpenPGP data found
Help please, i am trying to install Cubic, but i have an error:
When i run
sudo apt-add-repository ppa:cubic-wizard/release
I see this output:
///////
///\ \
/// \___\ Custom ...
0
votes
1
answer
204
views
How to add a new key nowadays for which "apt-key add K1" used to be utilized before?
I have the following command
wget -q https://download.arangodb.com/arangodb34/DEBIAN/Release.key -O- | sudo apt-key add -
Since apt-key has become depricated, how should I add a new key?
This warning
...
7
votes
4
answers
8k
views
Can't update npm to newest version on Ubuntu
First, I install npm
sudo apt-get install -y npm
Which installs npm version 3.5.2. Then I try to update it to newest version and it fails. Could not find a proper solution for this.
sudo npm install ...
0
votes
1
answer
3k
views
How to fix broken repositories for `apt update`
I'm in a Kali Linux Virtual machine on a Windows 10 host machine.
When I try use sudo apt update, I get the following output:
The strange thing is that the error comes from a repository from a ...
1
vote
1
answer
4k
views
How to automatically remove dead package repositories in Debian?
I manage couple of Debian servers and occasionally repositories stop working, and apt update gives something like this:
Get:25 https://packages.sury.org jessie/main amd64 Packages
Err https://packages....
1
vote
0
answers
134
views
How to make apt-clone work with apt-offline?
My goal is to clone a Ubuntu system's current packages onto another machine that may or may not be connected to the internet. On the target machine the end result should be all packages of the source ...
0
votes
1
answer
76
views
Prevent a command output from being displayed in a pager
Some commands display their output in a pager, and don't return. Here is an example of such a command :
apt changelog zsh
From the man apt page:
changelog
changelog downloads a package changelog ...
0
votes
3
answers
6k
views
APT: How to install recommended dependencies and not auto-remove them until the installing package is removed
Imagine a package foo that has a recommended dependency bar and a suggested dependency baz. How do I configure APT for the following behavior?
apt install foo: installs foo and bar; does not install ...
0
votes
1
answer
312
views
“apt-get purge” fails due to "unmet dependencies" error despite the dependencies already being installed
I am on Debian Stretch. When I try to run apt-get purge, it fails with an unmet dependencies error:
$ sudo apt-get purge -f openssl
Reading package lists... Done
Building dependency tree
Reading state ...
1
vote
0
answers
237
views
Clone Apt Packages Offline
I'm trying to figure out how can I clone apt (.deb) packages from one machine to another without using a remote repository meaning only by transferring files from one machine to the next.
From what I ...
2
votes
1
answer
2k
views
Accidentally uninstalled “apt” fro Ubuntu 18.04. How do I reinstall it?
I deleted apt-get by accident, and now I'm having problem reinstalling it.
Here is what I did
dpkg -r apt (uninstalled apt-get)
I tried to download apt.deb files and install back with
sudo dpkg -i ...
-1
votes
1
answer
4k
views
Ubuntu 20.04 apt-get update Release file not found
Trying to run sudo apt-get update or even just sudo apt update results in the following output for me:
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://dl.google.com/linux/chrome/...
0
votes
1
answer
167
views
apt install error. Panic: Incorrect version for previously generated inversion list
I have a rabbitmq-server set up that was having issues on ubuntu 16.04 so I was trying to reinstall that.
I faced this:
$ sudo apt remove rabbitmq-server
Reading package lists... Error!
E: Encountered ...
0
votes
1
answer
280
views
How to get package name via an executable command name in Ubuntu
I know in CentOS/Fedora, I can find out package name via the following command:
dnf provides <executable name>
but what command in Ubuntu will do the same?
1
vote
1
answer
14k
views
Whats going on in my kali linux? E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. Im a Newbie
I was installing this package when this happened.
root@kali:~/airgeddon# apt install isc-dhcp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
...
1
vote
1
answer
9k
views
Installation failed for gdb in kali linux
$ sudo apt-get install gdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdb is not available, but is referred to by another package.
This may ...
0
votes
1
answer
976
views
Kali Linux not Updating
I am trying to update my kali linux version, but whenever I try to execute sudo apt update command, it gives me the following output:
Ign:1 http://ppa.launchpad.net/micahflee/ppa/ubuntu groovy ...
0
votes
1
answer
417
views
Access denied from apt in Linux Mint
I'm actually using Linux Mint 18.04 on a 32-bit system, with an old computer, recently in dual-boot with Windows Vista. In the first times, I was able to download and install applications through ...
0
votes
1
answer
345
views
KeePassXC is not upgrading to latest version on Pop!_OS 18.04
I've added KeePassXC's official PPA and apt knows about the latest version, but it's not installing it:
$ apt list -a keepassxc
Listing... Done
keepassxc/bionic,now 2.6.1-1ppa1~bionic1 amd64
keepassxc/...
2
votes
2
answers
846
views
How to verify a package after downloading from repositories
I have downloaded filezilla package using the command:
# apt download filezilla
So I have:
# ls
filezilla_3.50.0-3_amd64.deb
UPDATE
So I check sums:
# md5sum filezilla_3.50.0-3_amd64.deb
...
1
vote
1
answer
265
views
Unable to remove python-pip package using apt
Here are my commands:
check if it exists
❯ sudo apt list python-pip
Listing... Done
python-pip/cosmic,cosmic 9.0.1-2.3 all
remove it
❯ sudo apt remove python-pip
Reading package lists... ...
2
votes
1
answer
1k
views
Apt broken install
I have upgraded from debian 8, 9, then subsequently 10 over the last few days. At some point in this process, apt quit functioning because it cannot upgrade a gnuplot package (which I am sure I'm not ...
2
votes
1
answer
3k
views
"command not found but can be installed with ..." prompt in Linux Mint?
I'm running Linux Mint on a VM. I've previously worked on Ubuntu 20.04 WSL and I liked the feature where if you didn't have a program installed but if that existed in the repository, you would be ...
0
votes
1
answer
166
views
Can I tell /usr/lib/apt/methods/http to store its data elsewhere?
I don't have much space on my root partition. Sometimes I get warning as the free disk space plummets. I believe this is due to a couple of /usr/lib/apt/methods/http processes. The space gets mostly ...
1
vote
0
answers
4k
views
cannot install ToR service in kali
apt install tor
I am getting this error:
Package tor is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from ...
2
votes
1
answer
2k
views
Can't add any apt repository due to issues with python3
i am trying to add an apt repository, but i get an error saying:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in <module>
from ...
0
votes
0
answers
41
views
Upgrade Linux Packages one by one
How can I Upgrade Linux Packages one by one instead of downloading multiple Packages at once?
Linux Terminal Upgrade
As in the above image, apt is downloading multiple Packages at once. I would like ...
2
votes
1
answer
2k
views
APT - Unable to locate package (aspnetcore/dotnet runtime, Ubuntu)
I'm trying to install the aspnetcore-runtime-3.1 package, I have added the microsoft package signing key with
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O ...
1
vote
1
answer
210
views
How to completely remove an apt package, so that its first install scripts will run again
Some packages have interactive package configuration scripts that only run on first install. Is there a way to manually trigger this, or cause apt to forget that it was installed? apt remove doesn't ...
0
votes
1
answer
783
views
dpkg-query lists multiple installed packages with the same name
I list my installed packages by size using this command
dpkg-query -Wf '${Installed-Size}\t${Package}\n\t${Version}\n' | sort -n
THis lists some packages twice with the same name but different sizes ...
0
votes
1
answer
3k
views
Kali Linux apt-get update Hash sum mismatch error
I downloaded Offensive Security Kali Linux 2020.2 Virtual Box ova from their website. When I try to update apt, hash sum mismatch error occurs. I tried to update my repositories but to no avail. I ...
0
votes
2
answers
7k
views
Hash sum mismatch error while upgrading
I'm using Pop_Os! 20.04. While trying to upgrade it i'm getting the following error :
sudo apt-get upgrade
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 apparmor amd64
2.13....
0
votes
2
answers
2k
views
I couldn't update on Debian 10 using sudo apt update
Hit:1 http://download.opensuse.org/repositories/home:/strycore/Debian_10 InRelease
Ign:2 http://download.opensuse.org/repositories/home:/strycore/Debian Buster InRelease
Get:3 http://deb.debian.org/...
1
vote
1
answer
584
views
Why is apt purge trying to install my packages?
I am using Lubuntu 16.04 which is Ubuntu + LXDE. I am running the command sudo apt purge /path/to/files/*.deb and instead of removing all of the packages in that directory, I just get filename.deb is ...
3
votes
2
answers
15k
views
What is the difference between apt dist-upgrade and apt upgrade?
What exactly is the difference between apt dist-upgrade vs. just apt upgrade? Which one should I use?
0
votes
1
answer
2k
views
Removing old DKMS files fails due to new kernel
I am running Ubuntu 19.10 and due to some problems with the linux kernel 5.3 i switched to 5.4. Now if i want to remove old virtualbox dkms files (virtualbox-6.0.14), dpkg exits with error code 10. ...
1
vote
0
answers
398
views
Errors with pip3 and apt after upgrading python and Anaconda (Debian 9)
In order to install PyMC3, I installed Python 3.8 from the official repository without realize that I already had Anaconda2 (with python 3.6). Python 3.8 worked fine but I wasn't able to make it ...
0
votes
1
answer
629
views
Copying the sources.list
Just installed Linux on another machine, a laptop. It's the exact same distro and version on I have on my PC.
Wouldn't it be possible to copy the /etc/apt/sources.list from the PC to the laptop so I ...
0
votes
1
answer
1k
views
Fixing broken package dependencies on debian, broken pipe error
My texlive package got broken, I've tried to reinstall it but when I run apt --fix-broken install broken pipe error comes out. I've done apt-get autoclean, apt-get autoremove, apt-get clean and it's ...
-1
votes
1
answer
369
views
Unable to locate package sublime-merge on Debian 10 32
I was able to install sublime text on debian 10 32 by following instructions on their website, https://www.sublimemerge.com/docs/linux_repositories.
Same way I tried to install sublime merge but I ...
6
votes
3
answers
44k
views
Ubuntu 20.04: E: Unable to locate package python-pip
I have just installed Ubuntu 20.04 and I have come across an issue when trying to install pip. On my older machines running 18.04, the command ran fine and installed the package. However, when ...
1
vote
1
answer
2k
views
Why apt needs sudo for almost every package install/update but Homebrew doesn't?
Why Homebrew doesn't even allow installing packages using sudo brew install foo, but almost every single apt package or tutorial tells to install with sudo apt-get install bar?
What's so drastically ...
2
votes
1
answer
4k
views
Couldn't to execute apt-get update on debian 10
I'm starting with Debian Linux 10 and I installed only a web server with Apache a few days ago.
Today wanting to update packages, I use apt-get update but I get the following errors, which rebooting ...
1
vote
1
answer
2k
views
apt install fails due to unmet dependencies and held broken packages
I'm attempting to compile synergy from source. But to do so I need to install a number of dependencies. The issue I'm having is that when i go install several of the dependencies I get unmet ...
0
votes
1
answer
711
views
apt pretends keys not available. Not true
I deleted /var/lib/apt and /var/cache/apt because I had weird issues with apt I could not get rid of.
Now I always get:
Get:1 http://security-cdn.debian.org buster/updates InRelease [65.4 kB]
Err:1 ...