Skip to main content

Questions tagged [apt]

APT is short for Advanced Packaging Tool, the package manager for Debian-based distributions. It is also the most used tool for installing packages in Ubuntu. Questions about using any of the apt commands should use this tag.

4,026 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
13 votes
0 answers
16k views

How to install a newer/different libc6 version?

I'm using Ubuntu 20.04 focal fossa. I'm trying to install a package that depends on libc6=<2.33 or above. However, focal repositories only have version 2.31, which is causing dependency troubles: ...
Error404's user avatar
  • 7,660
9 votes
2 answers
4k views

libMagickWand-6.Q16.so.2: cannot open shared object file

After upgrading Ubuntu 16.04 to 18.04, I can't run php commands. php -v shows me this: php: error while loading shared libraries: libMagickWand-6.Q16.so.2: cannot open shared object file: No such ...
Anthony Tailer's user avatar
8 votes
0 answers
974 views

Unable to find OpenCV during linking (compile from source)

I am trying to compile qgifer-0.2.1-source from its source in Ubuntu. I have all the dependencies installed. I am compiling as per below instruction from README of the source. cd qgifer_source_dir ...
Arindam's user avatar
  • 106
7 votes
0 answers
6k views

Boost 1.58 installed, but boost_thread and boost_locale missing

Trying to build a project that requires boost. I get the following error: Unable to find the requested Boost libraries. Boost version: 1.58.0 Boost include path: /usr/include Could not find ...
Jonathan Lindgren's user avatar
7 votes
1 answer
2k views

How do I install the debug symbols for gcov?

Which package has the debug symbols for gcov from the gcc package? I've tried installing gcc-5-dbgsym, but it didn't have the symbols. Not a duplicate of [1]. As I mentioned I've already enabled the ...
Evan's user avatar
  • 218
7 votes
2 answers
5k views

What's the easiest way to install OpenSSH 7.4 on Ubuntu 16.04?

On Ubuntu 16.04 (Xenial) box, what is the easiest way to install OpenSSH (openssh-client) that is higher than 7.2? I am aware that I could compile from source, but I was wondering if there's a way to ...
Tri Nguyen's user avatar
6 votes
1 answer
3k views

Unable to install python-apt

This happens when I use pip: user1@ubuntu-ipc:~$ pip install python-apt Collecting python-apt Using cached https://files.pythonhosted.org/packages/e5/ff/...
cheesus's user avatar
  • 471
6 votes
2 answers
6k views

Getting the most recent releases of gcc / g++ (11.0 or 10.2) on Ubuntu 20.04 LTS

I'd like to get the latest releases of g++ (and clang) via package manager (apt). Currently I need to compile gcc/g++ on my own which needs really a lot of time. Are there any repositories with "...
Bernd's user avatar
  • 161
6 votes
0 answers
278 views

Cannot upgrade EC2/Ubuntu to 18.04.4 with do-release-upgrade. Maybe it's python?

I'm trying to upgrade my Amazon EC2 instance from Ubuntu 16.04.6 to 18.04.4. I've already performed the cleanups like apt clean, apt autoremove etc... Then I start do-release-upgrade, I confirm to ...
TheUnexpected's user avatar
6 votes
0 answers
3k views

"Unknown error executing apt-key"

Ubuntu 18.04 LTS 64-bit: when I try to update I get the error: "Unknown error executing apt-key" several times, see the output below (I am not allowed to include the full screen dump because it ...
Paul Mus's user avatar
6 votes
0 answers
2k views

How to run update-apt-xapian-index only one time at week?

I cannot understand why update-apt-xapian-index is starting every day I boot Kubuntu 18.04.1 LTS. I have disabled updates in Muon but without any change. After that I searched for it in /etc/cron.* ...
awe's user avatar
  • 61
6 votes
1 answer
6k views

How to update ruby version to 2.5.1?

When I tried opening metasploit by msfconsole It showed an error rbenv: version `2.5.1' is not installed (set by /opt/metasploit-framework/.ruby-version) I tried rbenv install rbx-2.5.1 its ...
Afoolish Brat's user avatar
6 votes
0 answers
353 views

Masking i386 entries in `aptitude`?

I have a 64 bits system, and usually use aptitude to select and install packages. For packages that comes both in a 64 bits and 32 bits version, two versions of the package are listed: ...
Baard Kopperud's user avatar
6 votes
1 answer
10k views

Segmentation fault while running apt-get update

I am using Ubuntu 14.04 and when I try to run apt-get update It gives an error Reading package lists... Error! Segmentation fault What could be the root cause of this? And how can I fix it?
PeeKay's user avatar
  • 127
6 votes
1 answer
1k views

Blank updates in Software Updater in 18.04

I have 18.04 installed, but just recently I noticed my updates are shown as blank and pre-downloaded even though I have configured updates as notifications only. I find this very odd and a little ...
Sonofagun's user avatar
6 votes
1 answer
3k views

Slow ubuntu mirrors in AWS

We are currently having some very serious issues with VM's started in eu-west-1 region in AWS. The machines are started from cannonical AMI (ami-77057e00). The repositories configured are: http://...
zeridon's user avatar
  • 226
6 votes
2 answers
947 views

Why does apt-get install Skype easily while aptitude complains about MAJOR dependency errors?

I was trying to install Skype on Ubuntu 13.04, from the Canonical repositories. With apt-get it worked easily, while aptitude had a huge problem with dependencies and proposed a complicated solution. ...
Prateek's user avatar
  • 2,551
5 votes
1 answer
5k views

How to fix debconf: unable to initialize frontend: Dialog error w/Packer?

I am using the Packer vsphere-iso builder to build an Ubuntu-18.04 VM on vSphere with a shell provisioner, and when I run either of the following two commands: sudo apt-get install software-properties-...
MikeSchinkel's user avatar
5 votes
0 answers
324 views

Xenial servers offline after unattended upgrades

We logged on this morning to find 12 of our servers offline. All with different hosting companies. All running Xenial. They all came back online after rebooting and it seems to have been caused by ...
LeonardB's user avatar
5 votes
0 answers
260 views

Is it possible to change default diff tool for apt (or maybe it is for shell)?

I'm not sure is it apt or shell setting or is it a setting at all but whenever there is a conflict on a configuration file while doing apt upgrade I'm presented with these options: Y or I : install ...
Rychu's user avatar
  • 493
5 votes
0 answers
5k views

Ensure add-apt-repository keeps trusted=yes from deb input string

I am attempting to add a private repository to my sources.list using the add-apt-repository command, but I do not have access to the public key that corresponds to that package repository. If I try ...
heuristicus's user avatar
5 votes
1 answer
1k views

When does /usr/share/applications/mimeinfo.cache get updated and can I protect it?

I find it really irritating that some applications (e.g. pdfshuffler and calibre) end up a higher priority in /usr/share/applications/mimeinfo.cache than my desired application for PDFs (okular). I ...
spraff's user avatar
  • 403
5 votes
0 answers
4k views

How do I use pip with Python 3.6 on Ubuntu 14.04?

I am trying to install Python 3.6 as per this answer, but I seem to be having troubles. My system is the following (it's on c9.io): $ lsb_release -a No LSB modules are available. Distributor ID: ...
Arnav Borborah's user avatar
5 votes
0 answers
3k views

I cannot update ubuntu 16.04

I tried to update the OS, but I got the following messages: $ sudo apt-get update Hit:1 ttp://archive.ubuntu.com/ubuntu xenial InRelease Hit:2 ttp://archive.canonical.com/...
Christian Temple's user avatar
5 votes
1 answer
3k views

Difference between apt search and apt-cache search

I'm not getting the same results when using apt search and apt-cache search: using apt, I'm getting a lot less results than using apt-cache. For example, searching for screenshot gets me 4 results ...
jazzmax's user avatar
  • 61
5 votes
1 answer
97 views

How can I use a local package mirror at system installation time?

I would like to use a local mirror of the Ubuntu repositories when I'm completing an Ubuntu Server installation. I have a mirror already created to serve the repository over the LAN using http, this ...
Arronical's user avatar
  • 20k
5 votes
0 answers
8k views

What does dpkg --auto-deconfigure actually do?

I'm trying to replace Nginx with a version that has the PageSpeed module compiled in, and I've made my own .deb file for this. The first step is to uninstall the old nginx. However, when I try apt-get ...
Mark Stosberg's user avatar
5 votes
0 answers
839 views

Installed Cuda toolkit 7.5, but libcudart.so.5.5 remains

After installing Cuda Toolkit 7.5 on Ubuntu 14.04 (via apt-get of .deb file, followed by update of nvidia driver to 352.63), nvcc --version, NVidia-smi, and cuda samples work as expected. 7.5 is ...
user1823664's user avatar
5 votes
1 answer
8k views

How to disable apt key checking for private repositories under Ubuntu 14.04?

Under Ubuntu 14.04 I cannot get this to work. Our PCI auditor told us we can not have direct outbound access to the Ubuntu repo's, so I mirror them with reprepro. Likewise, we do not have outbound ...
Adam Harrison's user avatar
5 votes
1 answer
3k views

Apt doesn't want to install an older version of package

I'm building a debian package from the source code. The package has, among the others, the following dependency (part of debian/control): libswarm-dev (>= 0.6.1.0), libswarm-dev (<< 0.7), ...
ars's user avatar
  • 151
5 votes
0 answers
6k views

AttributeError: 'module' object has no attribute python

I am struggling with compiling python 2.7.9 from source and have been advised to ask this question here. While installing python 2.7.9 following the steps described here the following errors ...
Sebi's user avatar
  • 248
5 votes
1 answer
610 views

Firefox stuck in 6.0 and not updating. Apt-get says that its latest version

I'm having trouble updating Firefox, it does not update from the terminal and doesn't show up in the update manager. I'm running Ubuntu 12.04. If I run apt-get install firefox it claims that the ...
Axel's user avatar
  • 59
4 votes
1 answer
1k views

Installing nvidia drivers on 24.04 is an impossible task

My expectation is that installing drivers is a ten minute task, max. My actual result is that it's taken two, three days of work to get no results. sudo apt install nvidia-driver-535-open followed by ...
plutownium's user avatar
4 votes
0 answers
975 views

grub held back from update for weeks

the two packages "grub-efi-amd64-bin" and "grub-efi-amd64-signed" have been held back from being updated(upgraded) by apt for more than a week now maybe two weeks. sometimes when ...
Usermaxn's user avatar
  • 217
4 votes
0 answers
4k views

"Can't mark 'ubuntu-desktop' for upgrade" while trying to upgrade to LTS 22.04

When I do sudo do-release-upgrade to update to the next LTS, I get Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade. The cause seems to be this (from /...
Abastro's user avatar
  • 51
4 votes
0 answers
453 views

How to remove apt browsers and use Flatpak browser

Similar to this question Why does removing Firefox install another browser? when I try to remove Firefox installed via apt, apt tries to install Chromium as an alternative as I have dependencies that ...
db579's user avatar
  • 454
4 votes
0 answers
430 views

update-initramfs causes segmentation fault

I was trying to install lsscsi on my Raspberry Pi 4, running Ubuntu 20.04. I don't have a detailed log of what happened, but it got to the end where it says "processing triggers", then it ...
Russel Dirks's user avatar
4 votes
0 answers
576 views

"Building dependency tree" on apt-get takes too long

Ever since I installed Ubuntu "Building dependency tree" has always taken more than 10 minutes to finish, this happens for installing/removing/upgrading/updating. It does eventually finish ...
OpenSaned's user avatar
4 votes
1 answer
1k views

failed update of linux-firmware and linux-image-5.4.0-105-generic

Motivated by a recent CVE security request to update the kernel I have tried to update my kernel with sudo apt-get update && sudo apt-get install linux-generic this has failed. So I have tried ...
Rho Phi's user avatar
  • 141
4 votes
1 answer
11k views

ca-certificates-java error on Ubuntu 20.04

I can't install anything, it gives this error on every installation Setting up ca-certificates-java (20190405ubuntu1) ... head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or ...
dawnslayer's user avatar
4 votes
1 answer
405 views

How to install a specific version of a metapackage and its dependencies?

I'll use the NVIDIA 460 driver as an example. Here's what happens when I want to try to install version 460.67 instead of 460.80 (which is buggy, FYI). $ apt-get install -s nvidia-driver-460=460.67-...
YamiYukiSenpai's user avatar
4 votes
3 answers
2k views

Error running apt update E: Unable to determine file size for fd 7 - fstat

I have set up Ubuntu 21.04 Base image in Termux. When I run apt update, I get the following error. As I was not able to run apt update, I cannot install any packages. root@localhost:~# apt update Get:...
Archisman Panigrahi's user avatar
4 votes
1 answer
21k views

Unable to sudo apt-get update for Ubuntu (Windows subsystem for Linux)

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease Temporary failure resolving 'archive.ubuntu.com' Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease Temporary failure resolving ...
Lusarusrex's user avatar
4 votes
1 answer
1k views

apt-get upgrade stuck at "setting up base-files (11ubuntu5.2)" - Ubuntu 20.04

I am trying to execute apt-get update && apt-get upgrade on an Ubuntu 20.04 system: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20....
Andrei Rautu's user avatar
4 votes
0 answers
1k views

Error retrieving gpg key timed out

Using ubuntu 20.04 and I was trying to add this repository ppa:ondrej/php and then I got this message when running this command; sudo add-apt-repository ppa:ondrej/php Co-installable PHP versions: ...
botjaeger's user avatar
4 votes
1 answer
898 views

Ubuntu 20.04 - Can't Install Older PHP Versions

I decided to install Ubuntu 20.04 and give it a go. I am loving it so far, but I have run into an issue that may prevent me from using it. The default repositories have PHP 7.4, which is awesome, ...
coffinspire's user avatar
4 votes
0 answers
959 views

`apt-get install` without running `update-alternatives` (or specifying own priority)

Is there a way to install a package using apt-get install without update-alternatives being invoked? Or at least being able to specify your own custom priority for the new links added by update-...
Marcono1234's user avatar
4 votes
0 answers
590 views

Is sagemath removed from Ubuntu 19.10?

I am trying to install sagemath by running : sudo apt install sagemath but it says: Package sagemath is not available, but is referred to by another package. This may mean that the package is ...
user avatar
4 votes
1 answer
4k views

Wine Error: 0030:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE

I'm trying to install Flash CS 6 Pro (which is now called Adobe Animate) for Windows with Wine 4.0.2 on Ubuntu 18.04.3 LTS. I installed the latest version of Wine, updated all repositories and ...
Tom's user avatar
  • 187
4 votes
0 answers
804 views

Is there any way to change Snap download mirror?

I'm using ubuntu 19.04 with Ubuntu Store installed. I usually download and install snaps using snap command but I'm facing very low download speed issue with that. While packages from ubuntu ...
Ahmad Raza's user avatar

1
2 3 4 5
81