APT (Advanced Packaging Tool) is the standard software package management system for Debian and its derivatives.

learn more… | top users | synonyms (1)

1
vote
2answers
1k views

Remove all packages in a text file via apt-get

I have a text file with a package on each line. How can I remove all of the packages in that text file from the system? Also, if one package cannot be removed/wasn't installed in the first place, I ...
1
vote
2answers
251 views

Odd problem regarding 'apt-get update'

I was having some serious network troubles, and now running sudo apt-get update gives this error: ... Hit ftp://ftp.is.co.za experimental/contrib i386 Packages Reading package lists... Error! E: ...
1
vote
1answer
26 views

Restore part of a package that was accidentally deleted

In the process of trying to fix an issue, I accidentally deleted /sbin/sysctl when I was intending to delete /etc/sysctl.conf. When I run sysctl I get the error that says The program 'sysctl' is ...
1
vote
1answer
75 views

Missing apt-get package for pine64

I've got a pine64 board, which is running the arm64 version of debian. I'd like to build lgogdownloader, which suggests I should use this apt-get command: apt install build-essential libcurl4-...
1
vote
2answers
77 views

I installed the kernel and some drivers from jessie-backports. Should I leave the backports repo in /etc/apt/sources.list?

I installed Debian jessie on a laptop with relatively new hardware, e.g. a Skylake i7-6600U processor, so I had to install the kernel and firmware-iwlwifi driver from jessie-backports. /etc/apt/...
1
vote
1answer
30 views

Compiled (?) java packages on Debian

I notice looking for the jinput library on Debian (I believe the "j" here implies this is a java specific library, and not a simple wrapper), that there are two packages that might apply: libjinput-...
1
vote
2answers
66 views

How to reinstall configuration file [duplicate]

How do you revert or reinstall a configuration file in Debian/Ubuntu? I accidentally overwrote the file /etc/bluetooth/main.conf. Running dpkg -S /etc/bluetooth/main.conf shows that the package bluez ...
1
vote
2answers
54 views

Is it safe to set a cron job for apt-get upgrade? [closed]

Is it a good idea to create a cron job for apt-get update; apt-get upgrade for my webserver? So not apt-get dist-upgrade.
1
vote
2answers
85 views

Strange “apt-get purge” behaviour with regEx

I'm running Debian (jessie) and following this question, I followed the first answer suggestion to install that packages running sudo apt-get install gtk2-engines-* gtk3-engines* That did not ...
1
vote
1answer
86 views

Why do I have so many unnecessary packages?

I was installing Prey through a .deb file donwloaded from the official website when, all of a sudden I realized that I have so many "unnecessary" installed packages in my Ubunu laptop. This has been ...
1
vote
2answers
210 views

How to install the previous version of a .deb package and pin it?

I am trying to install the latest version of subversion on Sid, and because it has a bug I receive a warning and I abort the installation. How do I get to locate the previous version version, install ...
1
vote
2answers
19 views

apt-cache - show future commands

Is there a way to find out which commands will be available, once a package has been installed via apt-get? Let's say I would like to run apt-get -y net-tools. Host> apt-cache show net-tools ...
1
vote
3answers
46 views

List explicitly removed packages (apt)

The question unix.SE/3595 asks how to list packages that I explicitly installed. By explicit it means, packages that I choose, not including anything installed by default, or pulled in by the ...
1
vote
1answer
114 views

How to apt-delete-repository? [duplicate]

I would like to run the reverse of this command to remove the non-compatible repository in Debian 8.1 sudo add-apt-repository -y ppa:nemh/systemback where the command add-apt-repository is in the ...
1
vote
2answers
391 views

How to restore packages removed by installing a program

I was trying to install the normal map plugin for gimp, and I tried installing the package gimp-normalmap:i386 from the Software Manager on Linux Mint. As I was installing it, I realized that it was ...
1
vote
2answers
123 views

How do I get size of (deb) file from download link/URL?

I use --print-uris of apt-get to get url (download-link) of debs I want to download and install on my Debian (Trisquel) GNU/Linux. --print-uris Instead of fetching the files to install ...
1
vote
1answer
642 views

Can't install debian because installer doesn't parse IP correctly?

I am trying to install debian on Virtual box using debian-7.8.0-amd64-netinst.iso When I insert my proxy server http://192.168.2.2:3128, it says the installer failed to access the mirror. However on ...
1
vote
2answers
57 views

Adding my software to Debian

How do you add a package to the official Debian APT repository? For example lets say I have a peice of software called quicktxtedit ,and I have a DEB file for it, and I want to add it to the offical ...
1
vote
2answers
594 views

apt-cache policy gimp libgegl-0.2-0

I have tried to install Gimp on my Ubuntu 14.04, but I encountered an error: root@vitor-pc:~# LANG=C apt-get -f install Reading package lists... Done Building dependency tree Reading state ...
1
vote
2answers
748 views

Pruning the package tree with apt-get and yum

I love the Macports and Arch package managers, because I can generate a listing of all of the packages that I have manually installed, and "prune" the package tree every once in a while to keep my ...
1
vote
2answers
886 views

aptitude remove pkg_name* not working like apt-get

I have uninstalled (aptitude purge) the qt-sdk package but there is still a lot of qt4* and libqt* packages on my system. Is there a way to remove all these packages with aptitude remove/purge ...
1
vote
1answer
112 views

Why is this OR dependency not working as I expected

I tried to remove python2.6 from my Debian system: $ sudo apt-get purge python2.6 Reading package lists... Done Building dependency tree Reading state information... Done The following ...
1
vote
3answers
703 views

PHP package won't install correctly

Yesterday I did apt-get upgrade on my Debian/testing and broke a php5 package. I even tried to remove & purge with apt and dpkg clean apt cache. When installed again clean, it fails with ...
1
vote
1answer
21 views

is there a way to use regexp with aptitude?

I use an alias to find new packages whenever I update the package index. [$] alias aptn aptn='aptitude search '\''~N'\' Now while this works, I also get a bunch of -dbgsym packages which come ...
1
vote
1answer
21 views

What happens when two apt packages depend on two different versions of the same package?

Say that MyPackage.deb depends on GTK 2.19, because it is based on functionality that was deprecated in 2.20. What happens when when I want to apt-get install TheirProgram or dpkg -i TheirProgram.deb ...
1
vote
2answers
159 views

How to install a specific package with dependencies using apt-offline command?

I have installed apt-offline on tow machine runing debian jessie pc1 (online) and pc2 (offline). I am using the following command :sudo apt-key exportall | sudo gpg --no-default-keyring --import --...
1
vote
1answer
48 views

apt mirror chooses wrong architecture

I tried to do a repository mirror using apt-mirror and it inexplicably choose the wrong architecture. This is the architecture of the mirroring machine: uname -a Linux MyWorkStation 3.2.0-76-generic ...
1
vote
1answer
3k views

`apt update` failed on Debian Linux

Attempting to upgrade testing/stretch Debian Linux: $ sudo apt update Ign:1 http://dl.google.com/linux/talkplugin/deb stable InRelease Hit:2 http://dl.google.com/linux/talkplugin/deb stable Release ...
1
vote
1answer
2k views

apt-get update fails on debian squeeze with “File not found”

I'm trying to update my old server running Debian Squeeze. apt-get update fails. The output is here: Ign file: debs/ Release.gpg Ign file:/root/ debs/ Translation-en ...
1
vote
1answer
20 views

How to determine the added value of installing a (pseudo-)package vis-à-vis installing only one of its dependencies?

Suppose that (pseudo-)package A depends on (pseudo-)package B. I'm looking for a reasonable systematic way to answer the question: "what would I get by installing A that I would not get by installing ...
1
vote
1answer
87 views

Where is the nginx executable on Debian? [closed]

I've installed the nginx-light package on debian, but I can't find the executable. It's not in /usr/bin, like it says on the official nginx website. Where is it, then?
1
vote
1answer
442 views

Can't install LibreOffice 5 on Linux Mint 17.2, policy rule not taken into account?

I'm trying to install the package by following web upd8 article Install LibreOffice 5.0 In Ubuntu Or Linux Mint Via PPA, with the difference I use the Fresh PPA. Environment $ lsb_release -a No LSB ...
1
vote
1answer
13 views

Proper approach for upgrading apt software to non-apt versions?

Given a situation where a software package was installed with aptitude or apt-get, and then needs to be upgraded to a version not available in the package manager. What is the correct procedure for ...
1
vote
1answer
2k views

E: Unable to locate package libssl-dev when trying to download 32bit OpenSSL on 64bit system

I'm trying to compile multiarch project the right (means reproducible) way, so I decided to install all libraries through apt-get. But ever since the system noticed what I'm doing, it became hostile. ...
1
vote
2answers
392 views

apt-get doesn't completely uninstall dependencies which it has installed

I ran sudo apt-get install tor which installed these packages: The following NEW packages will be installed: tor tor-geoipdb torsocks But when I tried to remove it with sudo apt-get remove tor - ...
1
vote
2answers
180 views

Strange dependency error in installing package

I am trying to install an app we made in Ubuntu (with Quickly) to Raspberry Pi Raspbian. However, it has a dependency python:any (>= 2.7.1-0ubuntu2) which is unmet in Raspbian although it has Python ...
1
vote
1answer
108 views

Install .deb file from git repo on apt-get install

I have a .deb file built and checked-in into my git repository. I want to add this git repository url, as an apt-get repo in the debian system. So, everytime, i do apt-get install apt-repo-demo, it ...
1
vote
1answer
135 views

Multiple simultaneous instances of apt-get

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? What does these ...
1
vote
1answer
98 views

How do I get to know where a package came from?

On systems using apt: How do I get to know whether an installed package came from main, contrib or non-free?
1
vote
2answers
39 views

In Debian, how to recover /usr/share/doc?

On an old laptop running debian Jessie, I was doing an upgrade sudo apt-get upgrade But during the process, I checked the free space with df and saw that soon, less than 20 seconds, there will be ...
1
vote
2answers
66 views

Getting the diff of a package update

Before (or after) updating a package with apt-get update, how can I view the source code diff between the the new and the old version?
1
vote
1answer
315 views

Can apt-get upgrade perform a dist-upgrade from one version of debian stable to the next?

I just wanted to do a regular upgrade on my Debian Wheezy system. I did the usual $ sudo apt-get update $ sudo apt-get upgrade I noticed that the number of packages to be upgraded was pretty large ...
1
vote
4answers
489 views

Change apt-get's installation path

I have a machine on which the root partition is running out of space. I have another disk on which there is plenty of free space. How do I configure apt-get to install packages on a different disk/...
1
vote
3answers
85 views

What installed nginx?

Something has installed nginx on my system, I have not specfically typed apt-get install nginx. How can I find what has installed nginx ? I only noticed after a reboot, the system is rarely ...
1
vote
1answer
47 views

how to list downloaded apt packages without dependecies

I'm trying to get the names of downloaded packages without dependencies.. I don't want to get all the files in /var/cache/apt/archives .. I only want to get the primary packages without dependencies I ...
1
vote
2answers
3k views

Can't finish php5-cli update

I get the following error after doing sudo apt-get upgrade: Setting up php5-cli (5.5.9+dfsg-1ubuntu4.6) ... ucfr: Attempt from package php5-cli to take /etc/php5/cli/php.ini away from package php5-...
1
vote
1answer
206 views

Why does bash output data instead of executing, when a script is piped?

I'm running the following script on Ubuntu 14.04: #!/bin/bash apt-get purge -y nginx apt-get install -y nginx date When I run it like cat /tmp/script | bash, apt-get starts installing, then "date"...
1
vote
1answer
406 views

Using a file to install packages with apt-get

I find it very convenient to install packages on a new machine through package files like brewfiles, caskfiles, dockerfiles, package.json etc. Is there an alternative to this for apt-get since I ...
1
vote
1answer
127 views

List installed packages only from disk image

My Raspberry running Raspbian crashed but I would like to know which packages I had installed on that SD card. Is there a way to detect that without actually booting the system?
1
vote
3answers
5k views

“Packages have unmet dependencies” but I don't want to install these packages anymore. How do I clean this?

You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: fglrx-driver : Depends: libfglrx (= 1:14.4.2-1kali1) but it is not going to be installed ...