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.

The apt-get command is a powerful command-line tool used to work with Debian's Advanced Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Debian system.

Being a simple command-line tool, apt-get has numerous advantages over other package management tools available in Debian for server administrators. Some of these advantages include ease of use over simple terminal connections (SSH) and the ability to be used in system administration scripts, which can in turn be automated by the cron scheduling utility.

Examples

  • Install a Package: Installation of packages using the apt-get tool is quite simple. For example, to install the network scanner nmap, type the following:

    sudo apt-get install nmap
    
  • Remove a Package: Removal of a package or packages is also a straightforward and simple process. To remove the nmap package installed in the previous example, type the following:

    sudo apt-get remove nmap
    

[Tip] Multiple Packages: You may specify multiple packages to be installed or removed, separated by spaces. Also, adding the --purge options to apt-get remove will remove the package configuration files as well. This may or may not be the desired effect so use with caution.

  • Update the Package Index: The APT package index is essentially a database of available packages from the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:

    sudo apt-get update
    
  • Upgrade Packages: Over time, updated versions of packages currently installed on your computer may become available from the package repositories (for example security updates). To upgrade your system, first update your package index as outlined above, and then type:

    sudo apt-get upgrade
    

Further Reading

For further information about the use of APT, read the comprehensive Debian APT User Manual or type in command-line:

apt-get help  
1055 questions
-1
votes
2 answers

Linux cant install package of apt-get or aptitude install correct

I would like to install some files on linux. On my linux pc 64 bit i can install the file normally. Later on a 32 bit linux workstation that didnt work. I get the faults on install i get the faults like this.... Err:…
ShbPap
  • 45
  • 4
-1
votes
1 answer

Ubuntu deb install dependency libsdl1.2debian-purgeaudio

Good day every one. I have some custom_program.deb file wich working fine on Ubuntu 10.04. When i try install it on later version (like 12.04 or more) i have dependency error about libsdl1.2debian-purgesound. if i try sudo apt-get install…
user1722669
  • 488
  • 2
  • 6
  • 22
-1
votes
2 answers

apt-get fails Debian

I have a Linux server that is running Debian squeeze, I can not run apt-get update on it. I get errors like these: W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/binary-i386/Packages.gz Unable to connect to 10.197.3.5:3142: I…
-1
votes
1 answer

Is it possible to ignore/autoyes all disk space prompts in an apt-get installation?

Is it possible to ignore/autoyes all disk space prompts in an apt-get installation?
nightTrevors
  • 639
  • 4
  • 11
  • 24
-1
votes
1 answer

I can't install apps using apt-get

I run debian 5.04 VMware image. I tried to install the app as apt-get install tcpdump I got the following: I don't know what to do. Thanks
nms
  • 577
  • 1
  • 10
  • 27
-1
votes
1 answer

how to dpkg and apt-get packages on CentOS?

I dont have both these packages on my system. I am not able to install any package due to same. Can anybody tell me how to install these without root access??
user3345172
  • 59
  • 1
  • 8
-1
votes
2 answers

warning when run command sudo apt-get update

Fetched 5,388 B in 9s (547 B/s) Reading package lists... Done W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ precise/contrib amd64 Packages…
Siva Gnanam
  • 938
  • 2
  • 10
  • 26
-1
votes
1 answer

Apt-get installers: how does it works

I need to learn new aspect of development: making apt-get installers. Because of it, I need to find out, how it works. I tried to search information about it, but 90% of it is apt-get man's. For example: user prints sudo apt-get install…
Max Zhukov
  • 877
  • 1
  • 8
  • 32
-1
votes
3 answers

What to do if dpkg nor apt-get will remove the program on Ubuntu?

The problem is that I installed a .deb file, and when I tried getting rid of it with dpkg -r ..., dpkg claimed to have removed it. Nevertheless, I can type in the "removed" command, and it still works. I need to get it off, because I realized what I…
Josh Cason
  • 528
  • 5
  • 9
-1
votes
1 answer

How to install node-sqlserver

I have tried apt-get install aptitude but i got this: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet…
silvesterprabu
  • 1,417
  • 10
  • 30
  • 46
-2
votes
1 answer

Couldn't find package ia322stdc++6b32

How can I solve this problem sudo apt-get install ia322stdc++6b32 Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package ia322stdc++6b32 EDIT Reading package lists... Done Building…
Lukap
  • 31,523
  • 64
  • 157
  • 244
-2
votes
1 answer

How do I install (anything) on debian: 'apt is unknown instruction' in Dockerfile

How do I install (anything) on debian: 'apt is unknown instruction' in Dockerfile If I search: [how to install wget on debian] I get articles that say: $sudo apt install wget So I try to do that in Docker: FROM debain apt install wget and I get…
user10664542
  • 1,106
  • 1
  • 23
  • 43
-2
votes
1 answer

try to install the libpython3.6-stdlib

(pytorch_py38) root@4cc939e968fe ~/w/p/o/bulid# sudo apt-get upgrade 100 Reading package lists... Done Building dependency tree Reading…
-2
votes
1 answer

Error to fill unmet dependencies

I have encountered following error when I tried to run a command that sudo apt-get -f install. I am using Ubuntu 16.04. Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies...…
Wave
  • 111
  • 1
  • 3
  • 12
-2
votes
2 answers

sudo apt-get update gives error

sudo apt-get update gives error W: http://autoinstall.plesk.com/ubuntu/PMM_0.1.10/dists/trusty/InRelease: Signature by key 8BADC1A02FC9C07FB8C20EC0BD11A6AA914BDF7E uses weak digest algorithm (SHA1) W:…
Th3
  • 124
  • 2
  • 9