Questions tagged [apt-get]

GENERAL APT-GET SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. apt-get is a command-line tool used to work with Advanced Packaging Tool (APT) of Debian-based Linux distros and for performing actions such as installing or upgrading a package.

apt-get
Filter by
Sorted by
Tagged with
305 votes
2 answers
345k views

How to install Maven 3 on Ubuntu 18.04/17.04/16.10/16.04 LTS/15.10/15.04/14.10/14.04 LTS/13.10/13.04 by using apt-get? [closed]

Try: sudo apt-get install maven If it works for you ignore the rest of this post. Intro I started setting up my Ubuntu 12.10 on April 2013 and the normal sudo apt-get install maven was not ...
AmirHd's user avatar
  • 10.3k
303 votes
30 answers
346k views

How can I check if a package is installed and install it if not?

I'm working on a Ubuntu system and currently this is what I'm doing: if ! which command > /dev/null; then echo -e "Command not found! Install? (y/n) \c" read if "$REPLY"...
John Jiang's user avatar
  • 11.2k
254 votes
9 answers
262k views

How to thoroughly purge and reinstall postgresql on ubuntu? [closed]

Somehow I've managed to completely bugger the install of postgresql on Ubuntu karmic. I want to start over from scratch, but when I "purge" the package with apt-get it still leaves traces behind such ...
John Mee's user avatar
  • 51.1k
243 votes
11 answers
214k views

How can I check the version before installing a package using 'apt-get'?

I'm thinking to install hylafax+ version 5.5.4 which was released last month on my Debian PC. I checked dpkg -l | grep "hylafax" and found out that the current version is 5.5.3. Then I ...
Yasiru G's user avatar
  • 7,034
222 votes
8 answers
134k views

apt-get install tzdata noninteractive

When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying to use this in a script to do some setup, how can I make the apt-get run without user ...
PYA's user avatar
  • 8,356
222 votes
4 answers
122k views

What is docker.io in relation to docker-ce and docker-ee (now called "Mirantis Kubernetes Engine")?

Previously, to install Docker, I would use apt-get install docker.io However, I have recently noticed the documentation for installing docker, and it uses docker-ce. I have tried to find the ...
Will Parzybok's user avatar
183 votes
11 answers
445k views

How to install Android SDK on Ubuntu?

For my Ubuntu machine, I downloaded the latest version of Android SDK from this page. After extracting the downloaded .tgz file, I was trying to search for installation instructions and found: To get ...
Zameer Ansari's user avatar
161 votes
18 answers
273k views

Docker Repository Does Not Have a Release File on Running apt-get update on Ubuntu [closed]

I am using Ubuntu 16.10 and recently installed Docker (v1.12.4) using the Xenial build by following the instructions found here. I haven't encountered any problems creating containers, ensuring they ...
Daniel Eagle's user avatar
  • 2,305
148 votes
7 answers
209k views

apt-get for Cygwin?

Is there any apt-get-like program for use with Cygwin? I've already tried cyg-apt, but when I try to run it I get this error: cyg-apt: downloading: http://cygwin.mirrors.pair.com/setup-2.bz2 cyg-apt: ...
Hyztname's user avatar
  • 1,617
139 votes
20 answers
111k views

Docker build "Could not resolve 'archive.ubuntu.com'" apt-get fails to install anything

I've been trying to run Docker build on various files which previously worked before, which are now no longer working. As soon as the Docker file included any line that was to install software it ...
Matt Carrier's user avatar
  • 5,762
133 votes
10 answers
234k views

E: Unable to locate package npm

When I try to install npm with sudo apt-get install npm, I got following error: E: Unable to locate package npm Why can't apt find npm? I'm using Debian 9 and already did run sudo apt-get ...
Jacs's user avatar
  • 1,527
126 votes
3 answers
211k views

How do I download a package from apt-get without installing it? [closed]

I have a computer without a NIC, and I want to install some programs in it via USB memory, but how can I download a program from apt-get without installing it?
Manuel de Leon's user avatar
119 votes
3 answers
38k views

E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC' [closed]

When I apt-get update and apt-get upgrade my Ubuntu system, I get the following error message regarding fetching Google Chrome updates. This only started happening a few days ago. E: Repository '...
Sam's user avatar
  • 12k
117 votes
14 answers
218k views

How to download all dependencies and packages to directory

I'm trying to install a package on a machine with no Internet connection. What I want to do is download all the packages and dependences on a machine WITH an Internet connection and then sneaker-net ...
user avatar
111 votes
3 answers
103k views

What are the differences between node.js and node?

I've installed node.js in my machine (linux mint 15), when I run node example.js, it says: The program 'node' can be found in the following packages: * node * nodejs-legacy Try: sudo apt-get ...
Blake's user avatar
  • 7,457
110 votes
8 answers
114k views

E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file

Since i installed certbot on Debian 10, it always shows this error: root@HypeTime:/home/sinusbot# apt update Hit:1 http://security.debian.org/debian-security buster/updates InRelease Hit:2 http://deb....
SteinGaming's user avatar
  • 1,203
106 votes
9 answers
56k views

Is it possible to answer dialog questions when installing under docker?

Is it possible to somehow answer the questions that are presented as dialogs when installing some packages using apt-get? For instance I'm trying to setup a container containing the mail-stack-...
azdle's user avatar
  • 2,269
87 votes
7 answers
60k views

Apt-get is broken after install Google Cloud SDK on Ubuntu 18.04 LTS

I was installing the Google Cloud SDK on my Ubuntu VM using the following commands # Add the Cloud SDK distribution URI as a package source echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] ...
Vinay Joseph's user avatar
  • 5,585
80 votes
13 answers
199k views

Package opencv was not found in the pkg-config search path

I have installed OpenCV using the instructions in https://help.ubuntu.com/community/OpenCV $ sudo su $ sudo apt-get install build-essential $ sudo apt-get install libavformat-dev $ sudo apt-get ...
aliep's user avatar
  • 1,732
77 votes
1 answer
125k views

Installing Java 7 (Oracle) in Debian via apt-get [closed]

Installing Oracle Java 7 in Debian via apt-get repository doesn't seems to work. apt-get install oracle-java7-installer Look like apt-get does not recognize oracle-java7-installer.
AzizSM's user avatar
  • 6,269
70 votes
15 answers
325k views

Ubuntu apt-get unable to fetch packages [closed]

Just installed Ubuntu 13.10 (Saucy) and anything I try to install via sudo apt-get install is failing and throwing a series of 404 erros. Example - installing tmux [jeeves@HAL] hadoop > sudo apt-...
user2490003's user avatar
  • 11.3k
67 votes
6 answers
57k views

How to install Ruby 2 on Ubuntu without RVM

I want to install ruby 2.0 using sudo apt-get install ruby2.0 But there isn't available package for ruby2.0 I want to install it using apt-get install the same like ruby 1.9.1 Any suggestions?
Mahmoud Khaled's user avatar
63 votes
3 answers
59k views

How to correct virtualbox installation [closed]

Here is how the error output is if I run virtualbox from the terminal. How to correct it? I am on a Ubuntu 12.10 64bit machine. virtualbox WARNING: The character device /dev/vboxdrv does not exist. ...
footy's user avatar
  • 5,861
59 votes
1 answer
188k views

Getting apt-get on an alpine container

I have to install a few dependencies on my docker container, I want to use python:3.6-alpine version to have it as light as possible, but apk package manager which comes with alpine is giving me ...
NotSoShabby's user avatar
  • 3,510
58 votes
1 answer
94k views

Install openblas via apt-get `sudo apt-get install openblas-dev` [closed]

Is it possible to install openblas via apt-get like sudo apt-get install openblas-dev? Seems on ubuntu 14.04 it can't find it. sudo apt-get install openblas-dev Reading package lists... Done ...
mrgloom's user avatar
  • 20.8k
57 votes
8 answers
165k views

How to install pip for Python 2

I run python --version and get Python 2.7.3 I run pip --version and get pip 1.5 from /usr/local/lib/python3.2/dist-packages/pip-1.5-py3.2.egg (python 3.2) I installed pip using apt-get. How to ...
Paul Draper's user avatar
  • 80.9k
56 votes
6 answers
95k views

How to install Google chrome in a docker container

I'm trying to install chrome in a docker container. I execute: RUN apt-get install -y wget RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN dpkg -i google-...
Pythonist's user avatar
  • 2,389
55 votes
1 answer
30k views

Jenkins User on Apt-Get Install Installation

I just installed Jenkins on my Ubuntu server via the debian installation steps (using apt-get install). I want my build to pull from a private git repository on GitHub. With that, I need to use SSH ...
Dave Long's user avatar
  • 9,669
52 votes
8 answers
75k views

Run `apt-get update` before installing other packages with Puppet

I'm trying to create puppet module which automates installation of zend server CE, this is not important here, but steps are as following update /etc/apt/source.list download repos key via wget do ...
Jaro's user avatar
  • 3,857
49 votes
4 answers
31k views

What is the right way to do add-apt-repository via Chef?

I'm learning Chef and I'm going to do right now for Ubuntu: execute "add-apt-repository ppa:#{node[:some_repo]}" do user "root" end execute "apt-get update" do user "root" end but may be there ...
Artem's user avatar
  • 7,335
46 votes
12 answers
43k views

How can I get Chef to run apt-get update before running other recipes

Right now I have the following in my Vagrantfile: config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" chef.add_recipe "apt" chef.add_recipe "build-essential" ...
ashchristopher's user avatar
44 votes
4 answers
15k views

installing `lightdm` in Dockerfile raises interactive keyboard layout menu

I have the following Dockerfile: # Pull from CentOS RPM Build Image FROM ubuntu # Update the image RUN apt-get update -y RUN apt-get install lightdm -y The problem I have is when I'm building this ...
lurscher's user avatar
  • 26.4k
42 votes
7 answers
27k views

What is the difference between installing a package using pip vs. apt-get?

I'm trying to deploy a Django site on an Ubuntu machine. I need to install Psycopg2 and PIL but it seems that I'm able to install them using either apt-get or using pip. Is there a difference in ...
Mridang Agarwalla's user avatar
40 votes
6 answers
30k views

apt-get update fails on Ubuntu 22 base docker image

I am trying to upgrade one of our docker base images to the latest stable version of Ubuntu. I have isolated the problem to a simple reproducible case. I have a Dockerfile like this: FROM ubuntu:22.04 ...
morningstar's user avatar
  • 9,088
37 votes
5 answers
39k views

How I can make apt-get install to my virtualenv?

It it's possible, of course. For example - I can download python-dbus like this: $ sudo apt-get download python-dbus But what I should to do next, with this .deb package in my current virtualenv?...
Александр Кривошеев's user avatar
35 votes
8 answers
23k views

Docker build has no network, but docker run has

If I want to build my Dockerfile, it can't connect to the network or at least DNS: Sending build context to Docker daemon 15.95 MB Sending build context to Docker daemon Step 0 : FROM ruby ---> ...
sweiler's user avatar
  • 477
34 votes
4 answers
26k views

Requirements file for apt-get, similar to pip

I like how you can manage dependencies with pip requirements. Is there something similar in case of apt-get? http://www.pip-installer.org/en/latest/requirements.html#requirements-file-format
Vladimir Keleshev's user avatar
33 votes
3 answers
48k views

How to install python3.6 on Ubuntu 22.04

I need to install this specific python version, to prepare a developer environment, because I'm maintaining a system with multiple libraries based on python 3.6.9. I recently installed Ubuntu 22.04 on ...
Danilo Santos's user avatar
33 votes
2 answers
20k views

Why do I get old versions of nodejs and npm when installing with apt-get?

I have executed the following command in Ubuntu 14.04 64-bit. sudo apt-get update sudo apt-get install nodejs modejs-legacy npm I have the versions npm -v 1.3.10 nodejs -v v0.10.25 These are ...
user1283776's user avatar
  • 20.8k
30 votes
3 answers
36k views

Unable to locate package language-pack-en

On my NodeJS server (running as docker image)... Dockerfile FROM node:4.8-slim RUN apt-get update -y && \ apt-get install -yqq locales git ...there is no english locale installed: RUN ...
user3142695's user avatar
  • 16.7k
30 votes
8 answers
33k views

Installing MariaDB - Unmet dependencies, mariadb-server-5.5

I'm attempting to install MariaDB on Ubuntu 12.04 LTS. I've followed the instructions provided at https://askubuntu.com/questions/64772/how-to-install-mariadb and from MariaDB.org that appear when ...
Courtney Miles's user avatar
29 votes
10 answers
76k views

How to correctly install wkhtmltopdf on debian 64 bit?

I am trying to install wkhtmltopdf, but when I do: sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb I get : Preparing to unpack wkhtmltox-0.12.1_linux-trusty-amd64.deb ... Unpacking wkhtmltox (...
T.Nel's user avatar
  • 1,548
28 votes
4 answers
145k views

install apt-get on linux Red Hat server

I'm setting up a Linux Red Hat web server. apt-get isn't installed, but yum is. However, yum cannot find the apt package. When I run apt-get, I get a message from the shell saying that the command ...
Philip Mais's user avatar
27 votes
2 answers
20k views

Ubuntu equivalent of Yum's WhatProvides, to find which package provides a file

Fedora's yum package management tool has a nice option called whatprovides, which lets you find what package has installed a specific binary or file. What is the equivalent command on Ubuntu? For ...
Cerin's user avatar
  • 63.2k
26 votes
2 answers
5k views

Zsh Package Suggestion

I've just migrated to Zsh from Bash, but I have a bit of a problem in it. In bash on an Ubuntu system, when I type the name of a command which does not exist, Bash searches the apt database for a ...
Bhaskar Kandiyal's user avatar
25 votes
2 answers
49k views

'make' command not found in docker container

I have a docker image which is running docker host with ubuntu 14.04. In one of the containers, I am trying to run zookeeper and install librdkafka libraries(pre-requisite library) for kafka to ...
Omkar's user avatar
  • 2,333
24 votes
3 answers
29k views

Hash sum mismatch when apt-get update Ubuntu 20.04 VM with Multipass

My issue is the following: I start a new multipass VM which is Ubuntu 20.04 version (I do not specify it, just launch). First command in my new VM is: sudo apt-get update Where I already have some ...
Bettina's user avatar
  • 353
23 votes
1 answer
21k views

How to install experimental package? [closed]

I would like to install an experimental Debian package. I'm currently having problems with the older version so I figured it's best to upgrade and try that one because I can always switch back. Anyway ...
Jorrick Sleijster's user avatar
23 votes
4 answers
19k views

Why does Ubuntu have old versions of nodejs and npm in their apt-get package manager?

When I install nodejs and npm with apt-get sudo apt-get update sudo apt-get install nodejs modejs-legacy npm I have the versions I get the following versions npm -v 1.3.10 nodejs -v v0.10.25 I ...
user1283776's user avatar
  • 20.8k
21 votes
5 answers
40k views

Invalid Signature for MySQL repository

I really hope you can help me as i've tried to find a solution myself for like 3 hours or so. I basically went through every stackoverflow post there was regarding this. What i'm trying to do is i ...
RootK1d's user avatar
  • 172

1
2 3 4 5
22