Questions tagged [apt]

Debian's Advanced Packaging Tool whose main binary is apt-get. Most questions about APT are off topic for Stack Overflow, unless it is clearly related to a programming tool.

Advanced Packaging Tool, the Debian software package manager which keeps track of the software repositories for the system, which offers package dependency resolution, upgrade of the installed packages, download and installation of new software.

1492 questions
8
votes
1 answer

E: Unable to locate package wget in docker

I am trying to build the following dockerfile FROM php:8.0-apache RUN apt-get update # because apparently composer can shell out to unzip? Who knew... RUN apt-get install wget unzip zip -y but it failed with the following error [root@dev svc]#…
Sathish Kumar
  • 2,150
  • 10
  • 29
  • 51
8
votes
4 answers

Machine regularly segfaults

When I use apt-get to install or upgrade my Ubuntu hardy system, I often get messages like this: $ sudo apt-get install foo Reading package lists... Done Segmentation faulty tree... 50% $ sudo apt-get install foo Reading package lists...…
aaronsw
  • 4,455
  • 5
  • 31
  • 27
8
votes
1 answer

NVML driver/library mismatch after libnvidia-compute update

I'm running Ubuntu 18.04 and have recently (about a month) installed CUDA 10.2 with runfile installation after A LOT of trouble with the slightly recommended .deb installation. Everything was fine: nvidia-smi showed GPU stats and I was able to run…
user199710
  • 315
  • 1
  • 3
  • 8
8
votes
11 answers

Can't install Docker - Hash sum mismatch (Ubuntu 18.04, Vagrant, Virtualbox)

I just can't install Docker in a fresh image of Ubuntu 18.04 (in Virtualbox, using Vagrant). I am using the instruction from the official site: https://docs.docker.com/install/linux/docker-ce/ubuntu/ Or the short command from…
James Bond
  • 2,229
  • 1
  • 15
  • 26
8
votes
3 answers

Unable to install PHP packages with apt-get, gives "E: Unable to locate package"

I'm actually setting up my vagrant vm (trusty-64, Ubuntu distribution v14.04) and encountered an issue during the installation of all ppa:ondrej/php packages. I tried the default way to install php... $ sudo apt-get install…
Nico Richter
  • 135
  • 1
  • 2
  • 9
8
votes
0 answers

Why does apt-get install throw "Extracting templates from packages" to stderr?

When I run apt-get install, even in quiet mode -qq and by redirecting stdout to /dev/null, I still have the following message displayed in stderr : Extracting templates from packages: 100% Why is this message in stderr ?
Eagon
  • 81
  • 5
8
votes
1 answer

Is it possible to add Github releases link to Ubuntu sources.list?

I actually reinstall my Ubuntu, and I need plenty of programs. Of course I want to use it in the newest versions. However, Ubuntu official repositories often include older versions of programs. So I need to download the newest versions manually,…
BartekPL
  • 2,290
  • 1
  • 17
  • 34
8
votes
4 answers

use apt-get update E: Failed to fetch http://...... File has unexpected size

E: Failed to fetch http://mirrors.kali.com/kali/dists/kali-rolling/main/binary-i386/Packages.gz File has unexpected size (15320738 != 15317336). Mirror sync in progress? [IP: 111.11.111.111 80] Hashes of expected file: - Filesize:15317336…
8
votes
1 answer

Package manager on the Docker Machine default VM?

I'm developing on OSX using Docker Machine. I used the quickstart terminal to let it create the default VM which is extremely minimal: In an OS X installation, the docker daemon is running inside a Linux VM called default. The default is a…
Alex Hall
  • 34,833
  • 5
  • 57
  • 89
8
votes
3 answers

How to install PHP 5.6 on Raspbian wheezy?

I was wondering about how to install PHP 5.6.x on my Raspberry Pi. Currently version 5.4.41 is installed and because of the new specs i'd like to upgrade to 5.6.10. I've seen this tutorial but the console's output tells me something went…
lenny.myr
  • 903
  • 2
  • 11
  • 20
8
votes
3 answers

how to install python-dev with no root?

I am trying to install YouCompleteMe, the installation guide says I need "python-dev" sudo apt-get install python-dev My question is how do I install this with out root access on Debian. How can I check if I have python-dev?
A.D
  • 1,480
  • 2
  • 18
  • 33
8
votes
1 answer

Install python-pip on Ubuntu 14.04.2 Issue

Attempting to install python-pip on a fresh Ubuntu 14.04.2 VM. sudo apt-get update sudo apt-get install python-pip The error I get indicates some basic libc package can't be found: Err http://archive.ubuntu.com/ubuntu/ trusty-security/main…
ryantuck
  • 6,146
  • 10
  • 57
  • 71
8
votes
3 answers

Heroku Python binary library dependency

I need to run code on my Heroku Django project that requires the Python package dm.xmlsec.binding. This in turn, depends on having the binary apt package libxmlsec1 installed, usually via apt-get install. That is how I have things running locally on…
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
8
votes
3 answers

add PPA failed in Docker container

I ran add-apt-repository ppa:ubuntu-wine/ppa in docker container, but failed with the notice: Cannot add PPA: 'ppa:ppaname/ppa'. Please check that the PPA name or format is crrect. Hower it worked on the host. After googled a lot,I've tried the…
zhenxing1114
  • 91
  • 1
  • 1
  • 2
8
votes
3 answers

Generating equals / hashcode / toString using annotation

I believe I read somewhere people generating equals / hashcode / toString methods during compile time (using APT) by identifying which fields should be part of the hash / equality test. I couldn't find anything like that on the web (I might have…
Bruno Bieth
  • 2,317
  • 20
  • 31