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.

3,985 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12 votes
0 answers
14k 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,380
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
966 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
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
6 votes
1 answer
2k 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
4k 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
270 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
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
6 votes
0 answers
335 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
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
2 answers
4k 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

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,561
5 votes
1 answer
4k 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
322 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
236 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
  • 483
5 votes
0 answers
4k 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
  • 383
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
96 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
  • 19.9k
5 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
  • 117
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
838 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
0 answers
2k views

Difference between ports and us.archive

What is the difference between ports.ubuntu.com and us.archive.ubuntu.com? I ask because I already have an apt-mirror for us.archive.ubuntu.com and don't want to add ports.ubuntu.com if it is not ...
Jared Mackey'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
5k 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
0 answers
955 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
  • 197
4 votes
0 answers
435 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
478 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
379 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
20k 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
979 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
0 answers
885 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
583 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
743 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
4 votes
0 answers
339 views

apt-get upgrade fails with "Fatal: open /boot/vmlinuz-4.18.0-20-generic: No such file or directory"

This happens on all apt-get install and apt-get upgrade. Anyone knows what's going on? biran0079@ubunduck:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading ...
user607722's user avatar
4 votes
0 answers
1k views

Ubuntu 18.10 - how to install a specific version of gcc

Disclaimer: I have searched and read similar posts and they do not answer my question. Moving this post from SO where it was a skosh off topic. I am running Ubuntu 18.10 and need to install gcc 8.2....
Not a machine's user avatar
4 votes
1 answer
796 views

Remove pending installs in Ubuntu Software Centre

How do I remove pending package installs from Ubuntu Software Centre? (I'm using Ubuntu 18.04.2 LTS) I attempted to install a GStreamer package using the Ubuntu Software Centre some time ago and the ...
Ilan's user avatar
  • 141
4 votes
0 answers
752 views

failed to map segment from shared object

Whenever I am trying to run an application I encounter this error, for example running Atom in terminal resulted in this error: /usr/lib/snapd/snap-confine: error while loading shared libraries: ...
S.amin's user avatar
  • 103
4 votes
0 answers
1k views

Ubuntu 18.04 dpkg/apport problem

I recently updated python2 on my system, and now whenever I attempt to update or install any packages, I get an error of the following sort: sudo apt-get install -f Reading package lists... Done ...
mike's user avatar
  • 41

1
2 3 4 5
80