Questions tagged [apt]
For questions about the use, design, function etc. of APT (Advanced Packaging Tool), the standard software package management system for Debian and its derivatives.
3,312
questions
0
votes
2
answers
469
views
How to list packages with no manually installed packages in the dependent tree?
First, to clarify the terminology:
dependency <-> reverse dependency/dependent
I have xvt installed on my headless RPI, and I can't figure out the reason why it's not getting autoremoved.
$ sudo ...
1
vote
1
answer
415
views
apt kills the terminal
I have a Raspberry Pi 4 (4GB of RAM) host with Raspbian 11 bullseye.
Today, I was trying to run an ansible playbook to update the system with apt and it faild with a segmentation fault error, which ...
10
votes
2
answers
2k
views
What does a tilde (~) mean at the end of a dependency requirement in a deb file or in apt?
I'm curious to understand how ~ is processed in a dependency by Apt or how it's defined for deb files (I'm not sure exactly where the syntax is defined).
I ran into it with respect to dependencies of ...
2
votes
1
answer
354
views
Mutual dependence of libc6 and libgcc1
I found that the two packages libgcc1 and libc6 depend on each other (in debian 10), so none can exist without the other.
Why is that? Shouldn't a package depend on another and not finally on its own…?...
0
votes
1
answer
484
views
Apt / Apt-get / dpkg no longer logging to journald
I have a systemd service that I install via debian package using the apt command on a raspberry pi 4. I've been using journalctl -xef to keep track of all log output for debugging purposes while ...
2
votes
1
answer
2k
views
How can I find out which repository a given installed package was installed from?
How can I find out which repository a given installed package or program was installed from? I can see all the packages on my install with dpkg -l. Is there a method to see where they were sourced ...
3
votes
1
answer
851
views
Why are many of my packages marked as manually installed
I just realized that many of my packages are "manually" installed:
root@deb:~# apt-mark showhold
root@deb:~# apt-mark showmanual | wc -l
202
root@deb:~# apt-mark showauto | wc -l
371
I know ...
0
votes
1
answer
806
views
"apt install <name>.deb" not correctly installing Nvidia driver in the deb package
EDIT solution: The problem was that I thought the package installs the driver but it was not the case (more about it in the accepted answer). When installing Nvidia driver I suggest going with .run ...
0
votes
0
answers
1k
views
apt-get autoremove --purge -y seems to be stuck
I'm not entirely sure why this is happening, so it seemed wise to ask here before I interfere with it.
I'm attempting to install nasm, but I get the message:
Waiting for cache lock: Could not get lock ...
1
vote
0
answers
1k
views
sudo apt-get Conflicting values set for option
I am trying to install missing module packages in my Ubuntu installation. When trying to update Ubuntu for this, I am running into following error.
Command: sudo apt update
Error:
Conflicting values ...
0
votes
0
answers
381
views
Upgrading Docker using APT deletes all images and containers
The following commands are used in a maintenance script in order to upgrade packages on the Ubuntu system:
dpkg --configure -a
DEBIAN_FRONTEND=noninteractive apt upgrade -yq -o Dpkg::Options::="--...
1
vote
0
answers
519
views
Debian signature error
I am getting the following error when trying to update. This started when I added i386
W: An error occurred during the signature verification. The repository is not updated and the previous index ...
0
votes
3
answers
2k
views
Is 'yum check-update' mandatory to do an update? (Ubuntu comparison)
For Fedora Workstation 36. About yum (yes I know it is replaced by dnf) - I am using yum for academic purposes.
To accomplish an update of all the packages available in the OS - is used the sudo yum ...
2
votes
1
answer
7k
views
Udev, libpam-systemd, systemd-sysv and systemd dependencies errors causes apt to be unusable
After mistakenly downloading pop-desktop again, udev and systemd have dependency errors that make me unable to use apt. When I run sudo apt upgrade, this error shows up:
user@computer:~$ sudo apt ...
0
votes
1
answer
69
views
What is the right package to get 32bit include header sys/sysinfo.h on 64bit Debian Buster?
I want to get this header. I ran this command:
dpkg --add-architecture i386
But I don't know if I should pick linux-libc-dev:i386 or a linux header package?
I tried linux-libc-dev:i386 but gcc does ...
1
vote
2
answers
558
views
Setting up debian archive keys on risc64: new key but contains no user ID
I have a Sipeed Lichee RV that runs a Debian image, but I cannot install software due to missing key.
I have followed the Package Authentication Instructions but am getting this error:
root@sipeed:/...
1
vote
1
answer
4k
views
Make script answer "Y" to prompts from apt-get
I use a bash script to initially set up and update virtual machines. Trying to make this bash script configure the VMs without having to do so manually.
#! /bin/bash
echo "Updating and ...
0
votes
2
answers
13k
views
Debian: Can't Install Anything (Package Cannot Be Installed)
So, I have a brand new Debian install. My sources.list looks like this:
deb http://http.debian.net/debian wheezy main contrib nonfree
deb-src http://http.debian.net/debian wheezy main contrib ...
2
votes
1
answer
523
views
Understanding of the command "apt show"
Usually I use the command apt show pkg_name to check the description of a package. For example, apt show apache2. I just found that I can use apt info pkg_name to do the same thing. But I can't find ...
23
votes
2
answers
25k
views
How to add a third-party repo. and key in Debian?
I looked at another similar question about adding third-party repos. I am trying to add a third-party desktop IM client called riot . While the site gives link to the third-party it gives no ...
0
votes
1
answer
705
views
wine-staging-i386 install outputs dependency errors
OS: Parrot Sec (Debian based)
I'm unable to install winehq-staging package because installing wine-staging-i386 keeps throwing dependency errors at me. This is how it looks:
Reading package lists... ...
0
votes
1
answer
886
views
How can update my broken CUDA packages?
How I can fix the following problem? I want to update both these CUDA packages.
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
...
-5
votes
1
answer
249
views
Issues with apt repositories in Kali Linux, errors when updating
This shows every time I run sudo apt update. Is it an issue?
1
vote
1
answer
4k
views
How to install PHP7.2 on RaspberryPi avoiding apt
I am planing on hosting my laravel application on my RaspberryPi that's connected locally. I have my DynDns domain setup and everything.
Now i just need to get PHP7.2 on my raspberry and from what i'...
3
votes
2
answers
635
views
`docker run --rm debian:jessie apt update` does not work on Fedora host
I'm having trouble debugging a docker issue. On my machine as host, every apt/apt-get/apt-cache command in the debian:jessie image hangs and I can't figure out why.
On other machines with docker, when ...
2
votes
1
answer
203
views
Deborphan - Verify That a Package in the Keep List Is an Orphan
How does one quickly verify that a Debian package in the deborphan "Keep List" is an orphan?
1
vote
0
answers
105
views
Adding a package installed via apt to pip
I am trying to install vtk on my Ubuntu 20.04 virtual machine with python 3.8.10. I had the same problem as described in this post and I managed to install vtk via sudo apt-get install python3-vtk7 . ...
23
votes
3
answers
19k
views
Force apt-get to prompt yes/no
Is there a way to force apt-get to display yes/no prompt? A --force-yes option exists, but there seems to be no --force-prompt or similar option. If you attempt to install a package that has all ...
-4
votes
2
answers
49
views
Upgrade command in UBUNTU
Whenever i run the upgrade command in ubuntu linux latest after the update command i get the following errors !!!
Someone help please
3
votes
1
answer
2k
views
Is DEBIAN_FRONTEND=noninteractive redundant with apt-get -yqq?
I'm a noob in both Docker and Linux and studying a Dockerfile from a shared project I work on. Something I don't understand-- at the top of the Dockerfile we have:
# Never prompts the user for choices ...
0
votes
1
answer
1k
views
Where does "apt list" search?
apt list can list all packages available, does apt search in some database or file in some directory? apt list --installed can list all installed packages, where does apt search then?
4
votes
1
answer
8k
views
Unmet dependencies libappindicator1
I am trying to install the VPN client Forticlient on my Linux Mint distribution, but it can't install it because of this error:
The following packages have unmet dependencies.
forticlient : Depends: ...
0
votes
1
answer
63
views
How do I select a package from apt list when the same package is available on two repos?
I want to install plank from the github repo,and added the repository but apt defaults to installing the package from the default Elementary OS ppa.(The first package)
How do I selectively install ...
0
votes
1
answer
970
views
APT-KEY GPG --recv-key process hangs without any network traffic
On Debian 11, running as root. I am attempying to add the mysql repository public key (due to the expiry in Feb) and update to mysql 8.0, but every apt-key or gpg command I run just HANGS.
Even adding ...
0
votes
0
answers
490
views
Why is this apt install chrome failing?
What could be the problem here?
apt install -y google-chrome-stable_current_amd64.deb
Reading package lists... Error!
E: Sub-process Popen returned an error code (2)
E: Encountered a section with no ...
1
vote
1
answer
1k
views
Debian Sid: downgrading a single package to a "previous version"
I am happily running a state-of-art Debian Sid workstation.
Unfortunately I incurred in an "upstream regression" (network-manager-vpnc broke 1.2.7 -> 1.2.8)
I thus need to "downgrade&...
0
votes
1
answer
4k
views
arp-scan: command not found after install [duplicate]
I installed arp-scan using apt-get install arp-scan.
I have a succesful install message with the newest version (1.9.5-1).
However, when I try to type in the command in bash I get the following error:
...
2
votes
1
answer
932
views
apt update VS apt-get update
For years, I was always under the impression that results of apt update and apt-get update are identical.
BTW - Yes, I am aware apt and apt-get are not exactly the same.
I recently noticed that once I ...
0
votes
3
answers
189
views
Why are there updates for relatively stable programs like Vim, zip, tar or xxd?
After I do an apt update, there are updates to packages like vim, tar or xxd. Since these are relatively stable, why do they have frequent updates?
1
vote
1
answer
61
views
Does apt update also update apt-get lists?
Do you need to run apt-get update for using apt-get if you already ran apt update and vice versa?
-1
votes
1
answer
1k
views
the following packages have unmet dependencies:
I am trying to install anaconda navigator on kali linux Rolling , debian based , freshly updated.
I used the command line found on anaconda official Linux Installing documentation https://docs....
2
votes
2
answers
9k
views
Apt-get and mirrors errors or failed to fetch
My /etc/apt/sources.list contains:
deb http://ubuntu.mirror.garr.it/ubuntu/ focal main
deb-src http://ubuntu.mirror.garr.it/ubuntu/ focal main
deb-src http://ubuntu.mirror.garr.it/ubuntu/ focal ...
2
votes
1
answer
1k
views
linux-tools-common when on a newer kernel version
I'm currently running kernel 5.16.15-051615-generic - I've landed on it while diagnosing and trying to fix an audio issue. Everything works great now so I'm reluctant to go back to 5.4.0
I'd like to ...
19
votes
4
answers
8k
views
How can I know if a virtual package is "installed" on a Debian system?
Some packages, have a Provides: header. For example, the package postfix on Debian Wheezy has Provides: mail-transport-agent.
The package mail-transport-agent which doesn't exist physically is ...
1
vote
1
answer
654
views
Is it secure to copy packages directly to /var/cache/apt/archives/?
After a fresh install, instead of downloading some .deb packages from a Debian mirror, I would like to copy the files directly from thumb drive to /var/cache/apt/archives/
Would it offer the same ...
39
votes
1
answer
25k
views
apt-get install without debconf prompt
I would like to install chef via apt non-interactively, but by default, apt installation brings up this prompt:
Is there a way to skip this step during installation or pass a value to apt install? I'...
38
votes
2
answers
99k
views
Is it possible to have APT accept an "invalid" certificate?
I had discovered something funny today. So, I have Kali Linux and I am trying to fully update the system using the repo http://http.kali.org/kali. All is good and well until I get 403 denied for ...
0
votes
0
answers
1k
views
Stuck setting up a package as well as removing that package. Can't use apt now
So I have a .deb package downloaded. I installed it using sudo apt install ... but it didn't work correctly. I tried removing it using sudo apt purge ... and it said that it can't remove a few ...
0
votes
1
answer
341
views
How can I allow only specific users to use my repository?
I have an apt repository server. Is there a way to allow only specific users / machines to connect to my repository? Through crednetials, certificates or any other way? It can't be IP or some other ...
16
votes
3
answers
23k
views
Automatically install unmet build dependencies as detected by dpkg-checkbuilddeps
Is there a command that installs all the unmet build dependencies that dpkg-checkbuilddeps would list?
I tried to sed the output and give it to apt-get install, but it seems very hacky and for some ...