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.

581 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
5k views

apt update keeps hanging, no way to troubleshoot

Apt update on Ubuntu 16.04 hangs randomly every view updates. Nothing I've tried can permanently fix it and I have no way to troubleshoot it. The only solution I have is to create a shell script to ...
  • 379
5 votes
1 answer
2k views

Why does apt-file report "The cache is empty" even after running "apt-file update"?

Does anybody know why apt-file reports that the cache is empty even after running apt-file update and apt update? [pop-os ~][I]% apt-file search /usr/lib/android-sdk/tools/bin/sdkmanager E: The cache ...
  • 7,923
5 votes
0 answers
190 views

Why did apt not prompt me to confirm installing dependencies?

Usually, installing a package with dependencies that aren't currently installed will make apt confirm whether this is desired before proceeding to install: $ sudo apt install gnome-terminal Reading ...
  • 611
5 votes
1 answer
2k views

When using apt-get without an internet connection, how does one tell which packages are missing?

Like many others before me, I'm stuck having to install a package on Ubuntu without having any external internet access to the machine. However, I've already attempted dry-runs and transferred all the ...
4 votes
0 answers
8k views

How to undo "apt-get update --allow-releaseinfo-change"?

In an attempt to update a single package, I've inadvertently set myself up to upgrade to 'testing' releases for firmware instead of the stable ones. How do I revert my broad 'update' and specify ...
4 votes
1 answer
2k views

Bad Request 400 message for apt-get install every time I try to build my Docker Ubuntu 16:04 image

I am attempting to build a docker image with the requirements specified in requirements.txt. However, upon trying to build the file, I get the following error: E: Failed to fetch http://us.archive....
4 votes
0 answers
2k views

Use local (on disk) mirror for debootstrap

I'm trying to debootstrap from local files. I followed this guide. My host machine runs debian that I installed with : debootstrap stable /mnt http://httpredir.debian.org/debian/ What I did: mkdir /...
  • 1,622
4 votes
1 answer
2k views

apt-get update ignoring some URLs

Any ideas on why apt-get update may be ignoring some URLs? Specifically some translation-related ones. Sample output: pi@raspberrypi:~ $ sudo apt-get update Hit http://archive.raspberrypi.org jessie ...
4 votes
0 answers
100 views

cannot install in linux mint rebecca

I have a problem to install new packages/software in linux mint rebecca. My OS: > userubuntu@Oracle ~ $ uname -a Linux Oracle 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:30:01 UTC 2014 i686 ...
  • 171
4 votes
0 answers
876 views

rdepends stops on virtual packages

I am working to create an offline repository for a system that does not have internet access. One of the first packages I am downloading for this system is the apt-offline package. I am using the ...
4 votes
0 answers
5k views

dpkg-query listing package that is not installed

I installed Chrome via dpkg by downloading the deb file and installing it. I later uninstalled and removed it. However I'm now seeing this: $ dpkg-query -W google-chrome google-chrome $ dpkg-query -...
  • 17.3k
4 votes
2 answers
204 views

How to distinguish if a systemd unit is run by apt-get or during boot?

Can one somehow distinguish if, a) the daemon was started during boot or, b) (re)started by an apt-get install or upgrade? Can this be distinguished from within the daemon itself? The use case is ...
  • 1,628
3 votes
1 answer
50 views

Why are old kernel images not removed automatically to free required space on boot partition on Debian?

I do have unattended-upgrades (2.8) installed and the process is running. Yet it frequently happens that I get this error when trying to install upgrades: Processing triggers for initramfs-tools (0....
  • 3,467
3 votes
0 answers
399 views

Adding PPA on Ubuntu Bionic defaults to Eoan Repository

I am working on basing a new OS off of Ubuntu 18.04 Bionic, and in order to properly have the OS be recognized as a new distribution, I had to change /etc/lsb-release. In order to have it use PPAs, I ...
  • 355
3 votes
0 answers
1k views

`apt update` results in consistent "Failed to Fetch" errors for different apt sources

After a recent update from Bionic-based Pop OS! 18.04 to Cosmic-based Pop OS! 18.10, executing apt update always results in Failed to Fetch .... Temporary failure resolving errors for few sites. ...
3 votes
0 answers
150 views

Renaming trusted.gpg to trusted.gpg-broken

I ran a fresh install of Debian stretch 9.8.0 and all was well. I then ran sudo apt update and I get an output which hits the ftp.debian.stretch server for the update thing is it tells me unable ...
3 votes
1 answer
605 views

DEB822 style /etc/apt/sources.list?

I'm trying to upgrade my apt configuration to use the newer DEB822-style format. man sources.list says: It is intended to make this format gradually the default format, deprecating the previously ...
3 votes
0 answers
483 views

apt-get ignores --assume-no

I want to upgrade the package base-files without overwriting /etc/issue. So I used --assume-no to disable the modification of config-files, but this is ignored and apt-get asked for input while ...
  • 71
3 votes
0 answers
3k views

Cannot increase maximum open files for redis

I am using ubunto 18.04, When i run redis-server on the terminal it says # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=11260, just ...
  • 131
3 votes
0 answers
3k views

How to install Gnome Shell Extension "Night light slider" & "Pause night light" with apt

If i type "night..." into my global search window, software recommends the 2 packages: Night light slider and Pause night light. How do I install this packages with apt? I have done some ...
  • 4,948
3 votes
0 answers
2k views

"You have held broken packages" when trying to update mysql

I'm tryng to update my mysql (currently at version 5.6) to 5.7 on my Debian 8, however I get this error when I'm reaching the last step. cat /etc/apt/sources.list gives the following: deb http://...
  • 131
3 votes
0 answers
322 views

add an apt repository only for few packages (or mirror them)

I'd like to install a couple of packages available from an unofficial repository, problem is the repository share many packages and an apt upgrade would replace many of the official. I know about ...
  • 2,476
3 votes
0 answers
658 views

How to set up keyserver and port permanently

I have corporate firewall which blocks default port for apt-key. So each time I add PPA, I have to interrupt gpg (which hangs) and receive missed keys manually setting port 80. I created script which ...
  • 158
3 votes
0 answers
37 views

Why do the outputs of those apt invocations differ?

When running apt-get dist-upgrade it shows, that there are zero packages that are not upgraded. When I run apt-get autoremove it informs me that there are two packages that can be upgraded. To me this ...
  • 1,218
3 votes
1 answer
170 views

how to know if a reboot will be required

Depending on your Linux version there are different commands to update the system from a repository. What command is needed to preview whether a reboot will be required.... In other words - BEFORE an ...
  • 1,158
3 votes
1 answer
2k views

Linux Mint: Error! Your kernel headers for kernel 4.4.0-38-generic cannot be found

After several attempts to fix the issue by myself I've decided to post here, basically everytime I'm running an upgrade I received this error message: fabrizio@fabrix ~ $ sudo apt-get upgrade Reading ...
  • 131
3 votes
1 answer
2k views

Debian 8 apt-get upgrade fails with Failed to fetch … Connection failed

Debian 8 "Jessie". CLI-only home-use server. "apt-get upgrade" always fails with "E: Failed to fetch ... Connection failed ..." errors. "apt-get update" appears to always succeed. Problem has been ...
  • 31
3 votes
0 answers
444 views

Generate apt-offline bundle for use across many machines

I'm trying to use apt-offline to install packages on many machines (using ansible), so I need to avoid generating a machine-specific signature file (e.g. sudo apt-offline set debian-update.sig --...
  • 131
3 votes
1 answer
1k views

How to convince APT that a cross-arch package is installed manually?

I have a qemu-armhf chroot environment on an amd64 machine (it's mainly for compiling Raspberry Pi code). As such it can run both armhf and amd64 binaries but it's faster doing the latter. There are ...
  • 311
3 votes
1 answer
625 views

How to disable anti-aliasing in git-gui and gitk

After an upgrade to Tcl/Tk 8.5, git-gui and gitk are using anti-aliased fonts which look ugly on my display. I can select different fonts in the preferences dialog, but the fonts I was using before (...
3 votes
0 answers
1k views

apt repository not showing in apt-cache policy, why?

I have a private mini-dinstall based repository. sources.list.d has an entry for it, like https://user:pass@my.host/repos/ tools/ I have installed apt-transport-https and I can happily install ...
  • 546
2 votes
0 answers
68 views

Apt reports multiple checksum mismatches

When trying to update my current Debian installation I get multiple errors of the following format: Err:882 http://ftp.de.debian.org/debian sid/main amd64 libgconf-2-4 amd64 3.2.6-7+b1 ...
2 votes
1 answer
291 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 ...
2 votes
1 answer
261 views

After failure in "apt upgrade", sudo doesn't prompt for password. How do I fix?

While doing a "sudo apt upgrade", I got a message "error while loading shared libraries: libcrypt.so.1". When I came back to it some minutes later, if I try to run sudo I now get: $...
  • 2,972
2 votes
0 answers
230 views

Assertion 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at ../src/basic/time-util.c:55, function now(). Aborting

As per this naswer I have tried to fix a failed libc6 and libcrypto update. I created a link where it seemed appropriate by mounting my SD card onto /media on another PC changed directory to /media/...
  • 257
2 votes
0 answers
161 views

Duplicate file trigger interest doesn't have duplicates

Before it gets flagged as duplicate I am aware of dpkg: error: duplicate file trigger interest for filename `/usr/lib/gio/modules' and package `libglib2.0-0'. I checked the solution in the ...
2 votes
0 answers
68 views

When does "apt-get install" ask me to confirm whether I want to continue or not (year 2021, Linux Mint 20, based on Ubuntu)?

I've read When does "apt-get install" ask me to confirm whether I want to continue or not? (year 2013): prompt appears when: Extra packages (besides those you asked to install - e.g. ...
2 votes
0 answers
111 views

Upgrade from ubuntu 16.04

I got access to a computer using Ubuntu 16.04. Since it is out of support, I am in need to upgrade it to, say, 20.x. To do this, I am prompted to execute sudo apt-get update before. But this gives the ...
2 votes
1 answer
563 views

Remove recommended dependencies of installed package without uninstalling the package nor its actual dependencies with apt

I want to remove the recommended packages of a package using apt. my-package is installed, and I want to keep it and its dependencies. apt-cache depends <my-package> | grep Recommends returns a ...
user avatar
2 votes
0 answers
436 views

Debian Apt Connection Failed despite wget working

For some reason my Debian 10 box cannot use Apt to get any connections. There is no proxy, I have no custom settings in apt.conf.d and I can even use wget to the exact same IP and port that Apt just ...
  • 109
2 votes
0 answers
77 views

Reducing debconf prompts in debian stable

I deploy a device with several debian stable machines in it. We instruct our customers to keep it up to date with apt, though they aren't always the most linux-literate people. Debian 10.8's point-...
  • 9,876
2 votes
1 answer
29 views

Firefox Window icon disappeared after interrupted upgrade

Situation See the attached image: the icon for the Firefox window has disappeared after an interrupted upgrade (VM crashed), but the icons on the desktop and in the start menu are fine. (I'm using ...
  • 325
2 votes
0 answers
367 views

Cannot install linux-headers because of uname

On Ubuntu (18.04.5 LTS) I tried to install linux headers (need that for acronis backup) with sudo apt-get install linux -headers-`uname -r` If i run that, apt lists 719 header-packages to be ...
  • 121
2 votes
0 answers
424 views

apt: keep only pkgcache.bin, delete srcpkgcache.bin

How to disable srcpkgcache.bin without disabling pkgcache.bin (which has the extremely annoying effect of breaking apt install bash completion)? I've tried #Dir::Cache::pkgcache ""; Dir::...
  • 443
2 votes
0 answers
315 views

How to fix broken CUDA installation [ZorinOS/Ubuntu]?

I have some problems installing CUDA on ZorinOS (I know it's not officially supported, but it acts much like Ubuntu). I tried to install it the way it is described in the official documentation, did ...
2 votes
0 answers
312 views

How to solve the unmet dependencies issue when to install wine32?

Show my wine's version info: wine --version it looks like wine32 is missing, you should install it. as root, please execute "apt-get install wine32" wine-1.8.7 (Debian 1.8.7-2) Install wine32 ...
  • 239
2 votes
0 answers
1k views

apt: error while loading shared libraries: libapt-pkg.so.5.90

I did a whole system update and then a distribution upgrade. After install I ran apt-get update and started to see some errors. Tried to troubleshoot the dependency issues by hand but I have had ...
2 votes
0 answers
684 views

apt-get update no longer works after rebuilding corrupted PATH variable

I royally screwed up my PATH variable last night, thankfully a user called Icarus helped me rebuild it here. However it's not fully fixed and I receive the same (or maybe very similar) error that I ...
  • 343
2 votes
0 answers
658 views

How to prevent apt upgrade from downgrading my kernel?

I needed to manually install (through apt) a specific kernel version that supports newer USB-C features for USB development -- specifically version linux-image-4.18.0-25-generic in the Ubuntu apt ...
  • 161
2 votes
0 answers
90 views

How can I install texlive-humanities to Ubuntu 19.04

I tried to install texlive-humanitiesto Ubuntu 19.04 but it looks like there is problems with broken packages. How can I solve this issue? (base) jaakko@jaakko-GL553VW:~/Desktop$ sudo apt install ...
  • 33

1
2 3 4 5
12