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
-2
votes
1 answer

Error occurred while installing zenity

I was trying to install zenity, from the command sudo apt-get install zenity and the result its The following packages have unmet dependencies: zenity : Depends: libwebkit2gtk-4.0-37 (>= 2.5.3) but it is not going to be installed E: Unable to…
cocoa
  • 11
  • 6
-2
votes
1 answer

apt-get install always fail with "/usr/bin/dpkg returned an error code"

My new Ubuntu16.04 always got those problems: Errors were encountered while processing: apport apport-gtk python-decorator python-pil:amd64 python-imaging python-six python-scipy E: Sub-process /usr/bin/dpkg returned an error code…
Jonanza
  • 1
  • 1
-2
votes
1 answer

Prevent apt-get from running

I need to disable apt-get temporarily to get a specific "mode" of my Ubuntu-Workstation, where multiple users are working and nobody should be able to install any packages. First idea was to open the lock-file under /var/lib/dpkg, to simulate an…
cbuchey
  • 23
  • 3
-2
votes
1 answer

Apt-get stopped working

Relatively new to Linux but I've become comfortable enough with the terminal.However recently with any "apt-get install" I get this in response E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). When I try…
Fiach Oneill
  • 3
  • 1
  • 4
-2
votes
1 answer

Error in apt-get update

I'have Ubuntu 14.04 , if i do : sudo apt-get update the result is : Ign http://ftp.debian.org wheezy InRelease Ign http://ppa.launchpad.net trusty InRelease Ign http://ppa.launchpad.net trusty InRelease …
MohaMed
  • 81
  • 1
  • 2
  • 10
-2
votes
1 answer

UBUNTU 14.04 64BIT can not install lib32stdc++6

I want install a 32bit application,but i can not install lib32stdc++6 here is: sudo apt-get install lib32stdc++6 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed.…
alan_wang
  • 785
  • 8
  • 9
-2
votes
1 answer

Can apt-get work in Slackware or other Linuxes?

I know that apt-get is meant to be a packaging manager for Debian. But I'd like to learn if this software can be also ported to different operating systems, especially to Slackware. I am the author of Slax, a Slackware-based operating system, so I…
Tomas M
  • 6,919
  • 6
  • 27
  • 33
-2
votes
1 answer

what are the risks of using apt-get on centos?

I just installed Centos on and installed apt-get on it. what are the risk factor of using apt-get on centos.. I do know that apt-get is for ubuntu, debian.. but since I come from ubuntu background i felt like 'why not' anyone can clarify if it is…
Itachi Sama
  • 886
  • 1
  • 6
  • 18
-2
votes
1 answer

ubuntu can not install software-properties-common

I am trying to install software-properties-common and see following issue root@e34e5a9927ea:/# apt-get install software-properties-common Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: …
daydreamer
  • 87,243
  • 191
  • 450
  • 722
-2
votes
1 answer

Ubuntu 13.04 The following packages have unmet dependenies

Whenever I try to install anything on my Ubuntu 13.04 machine I get this error: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libegl1-mesa : Depends: libwayland-client0 (>= 1.0.2) but…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
-2
votes
1 answer

Installing software in kubuntu

I have recently installed kubuntu. I am able to install softwares from muon software center. But when I try to do so from the terminal, I get errors. For instance on trying to update, I get: Err http://archive.canonical.com quantal InRelease Err…
sudeepdino008
  • 3,194
  • 5
  • 39
  • 73
-2
votes
1 answer

How to update apt-get when error "could not resolve 'us.archive.ubuntu.com'" comes up in ubuntu linux?

Using Linux 3.2.0-32-generic Ubuntu x86_64 when I tried to update using "apt-get update" I received several error messages for many lines of requests to the us ubuntu archives. It read "could not resolve 'us.archive.ubuntu.com'". What can I do?
beiping_troop
  • 185
  • 1
  • 2
  • 5
-3
votes
1 answer

how to remove laravel with composer on linux mint 18.3(ubuntu 16.04)

I install Laravel with the default composer sudo composer create-project laravel/laravel laravel 5.6 then I found a lot of error cause the compose is version 1.0x so old then I remove the composer and update the composer to version 1.7.2 the…
robspin
  • 771
  • 3
  • 14
  • 33
-3
votes
2 answers

Installing dependencies for a python code in windows 10?

There is a python script that I want to run on windows 10 but it requires these dependencies: apt-get install python-dmidecode libcdio-utils acpidump mesa-utils But windows does not support the "apt-get" command. I have tried chocolatey but I…
-3
votes
2 answers

Where are the packages installed in ubuntu?

Whenever i install a package using the sudo apt-get install command, I would like to know where in the file system the package is palced. Does it get placed in a single folder like in the windows file system, or do the files get placed across…
Deeraj Theepshi
  • 183
  • 3
  • 10
1 2 3
70
71