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
314
votes
4 answers

Install MySQL on Ubuntu without a password prompt

How do I write a script to install MySQL server on Ubuntu? sudo apt-get install mysql will install, but it will also ask for a password to be entered in the console. How do I do this in a non-interactive way? That is, write a script that can provide…
Venkat
  • 4,259
  • 4
  • 23
  • 20
280
votes
2 answers

How to apt-get install in a GitHub Actions workflow?

In the new GitHub Actions, I am trying to install a package in order to use it in one of the next steps. name: CI on: [push, pull_request] jobs: translations: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 with: …
Niklas
  • 3,753
  • 4
  • 21
  • 29
248
votes
4 answers

What is the difference/usage of homebrew, macports or other package installation tools?

I've just recently switched to a Mac from Ubuntu. I was disappointed that mac doesn't have the convenient sudo apt-get in Ubuntu. I've heard that I should use homebrew but I'm not exactly sure what homebrew or macports does?
ROBOTPWNS
  • 4,299
  • 6
  • 23
  • 36
237
votes
11 answers

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 checked apt-cache search hylafax and saw the packages are…
Yasiru G
  • 6,886
  • 6
  • 23
  • 43
194
votes
14 answers

Repository is not signed in docker build

I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub: FROM ubuntu:latest RUN apt-get update && apt-get install -y g++ llvm lcov when I launch the docker build command, the following errors occur: Err:2…
Antonio La Marra
  • 5,949
  • 4
  • 15
  • 23
186
votes
4 answers

Docker: Having issues installing apt-utils

I am trying to install apt-utils on Docker because when I was just doing apt-get update, I was getting the error: debconf: delaying package configuration, since apt-utils is not installed. So I added a line to install apt-utils (along with…
peachykeen
  • 4,143
  • 4
  • 30
  • 49
181
votes
12 answers

Amazon Linux: "apt-get: command not found"

I'm trying to install an Apache server on my AWS instance. However, it seems that it doesn't have the apt package installed. I googled and all I found was some broken links to this package. I am using PuTTY on a Windows machine if that information…
Caio Favero
  • 2,196
  • 3
  • 17
  • 18
163
votes
5 answers

How can I get a list of repositories 'apt-get' is checking?

I want a list of repositories in sources.list, plus those in sources.list.d/. Can I get this list in a form suitable for setting up another host so it watches the same repositories? Additionally, how do I determine which repository is the source of…
ktenney
  • 3,945
  • 3
  • 19
  • 12
161
votes
8 answers

Installing SciPy and NumPy using pip

I'm trying to create required libraries in a package I'm distributing. It requires both the SciPy and NumPy libraries. While developing, I installed both using apt-get install scipy which installed SciPy 0.9.0 and NumPy 1.5.1, and it worked fine. I…
eran
  • 14,496
  • 34
  • 98
  • 144
129
votes
10 answers

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 install nodejs
Jacs
  • 1,437
  • 4
  • 21
  • 31
119
votes
3 answers

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

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 'http://dl.google.com/linux/chrome/deb stable Release'…
Sam
  • 11,799
  • 9
  • 49
  • 68
114
votes
11 answers

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead

I was installing elasticsearch following this guide, but elasticsearch is not really the part of this question. In the first step, I need to add the key: wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - and got the…
dibery
  • 2,760
  • 4
  • 16
  • 25
110
votes
3 answers

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 install So what are the differences…
Blake
  • 7,367
  • 19
  • 54
  • 80
98
votes
7 answers

How to update-alternatives to Python 3 without breaking apt?

The other day I decided that I wanted the command python to default to firing up python3 instead of python2. So I did this: $ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 $ sudo update-alternatives --install…
Will
  • 1,509
  • 1
  • 13
  • 16
92
votes
7 answers

Package php5 have no installation candidate (Ubuntu 16.04)

When i try to install php5 in Ubuntu 16.04 by using following code: sudo apt-get install php5 php5-mcrypt I get following error: Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not…
Srijan Karki
  • 1,576
  • 2
  • 14
  • 21
1
2 3
99 100