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

learn more… | top users | synonyms (1)

2
votes
1answer
2k views

Apt broken after upgrading python on 14.04 - No module named 'lsb_release'

I recently needed an updated version of Python3 for a project, so I built it from source; and I believe I made a bit of a mess. All apt based operations now end in an error here: (Reading database ......
0
votes
0answers
26 views

Uninstall package from command line in unbootable system

I messed up my Raspbian Jessie system by installing upstart, and now it gets hung up while booting. Now I'm trying to get back to a bootable system by uninstalling it. I used these directions to get ...
2
votes
3answers
171 views

The following packages have been kept back

The following packages have been kept back: click click-dev gir1.2-click-0.4 libclick-0.4-0 0 BUT It's clear that all of these packages are either on hold somewhere, or are in some kind of conflict,...
0
votes
0answers
18 views

sources.list.d files are automatically configured: how can I change them persistently? [duplicate]

Google recently discontinued support for 32-bit Chrome repositories on Linux. That's fine; I don't care: I'm on 64-bit. No problem. Unfortunately, it causes apt update to fail because it fails to ...
2
votes
2answers
12k views

Force download & reinstall of all deb packages

I have a Kali Linux installed recently, but due to its inflexible mirror selection, all deb packages are downloaded from a mirror that I don't trust. Is it possible to tell apt / dselect to re-...
3
votes
2answers
222 views

installing virtualbox apt-get wants to download gcc-4.8 --> replacing gcc-4.9?

I'm trying to install virtuabox on Debian 8.3 using the contrib repos. When I use apt-get install virtualbox it wants to install gcc-4.8, but I already have gcc version 4.9.2 installed. What am I ...
0
votes
0answers
28 views

Can't permanently modify google-chrome.list [duplicate]

I have been modifying the file /etc/apt/sources.list.d/google-chrome.list to correct this error. And it which works well the first time. The problem is that the next time I turn on the computer the ...
0
votes
0answers
53 views

Cannot find installed application - failed to fetch deb (404 not found)

I tried installing glade on Kali using sudo apt-get install glade command, but I get this error: Failed to fetch http://http.kali.org/kali/pool/main/m/mesa/libegl1-mesa-dev_11.1.1-2_i386.deb 404 ...
0
votes
2answers
3k views

Can't find source package with apt-get source on Debian Squeeze

I have an old server running Debian Squeeze. I'm trying to download the source of some package so that I can patch it manually. However, apt-get source fails for every package I try. An example: root@...
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
32 views

How to install Readahead-Fedora on Lubuntu 15.10? [closed]

I try to install Readahead-Fedora withe the command line : sudo apt-get install readahead-fedora But doesn't work! How can I install readahead-fedora?
33
votes
3answers
33k views

Should I use “apt-get remove” or “apt-get purge”?

For uninstalling an app (or package) should I use apt-get remove package-name or apt-get purge package-name? What is advantage of any of them to other one?
1
vote
2answers
83 views

How can I detect when apt-get update fails due to no network connection?

I have a script which runs the command apt-get update but the script is unable to detect failure due to no internet. i.e. if apt-get is not run with root privileges it exits with code 100. so I can do ...
0
votes
2answers
20 views

How to know which files (scripts and configurations) I have installed by apt-get?

I always use rpm --query --package-name to see what files (scripts and configurations) I have installed. I'm looking for the similar command in ubuntu. Is there any equivalent command for apt-get?
0
votes
1answer
117 views

What to do when some errors happen during an apt-get upgrade process?

I've accidentally run apt-get update, apt-get dist-upgrade before previously checking free disk space... Little did I know my root / partition was filled up to the very end by some log errors. So ...
0
votes
2answers
54 views

Does “apt-get -s upgrade” or some other apt command have an option to list the repositories the packages will be downloaded from?

Does apt-get -s upgrade or some other apt command have an option to list the repositories the packages will be downloaded from? apt-cache policy will tell you for an individual package but I need ...
27
votes
3answers
26k views

How to install a single Jessie package on Wheezy?

I want to install a single package (and its dependencies, but only to the extent those are not satisfiable in Wheezy) from Debian Jessie onto my Wheezy system, without upgrading "everything and the ...
70
votes
4answers
173k views

How to add repository from shell in Debian?

In Ubuntu one can add a repository to apt-get via the following command - sudo add-apt-repository ppa:yannubuntu/boot-repair As Ubuntu is based on Debian code base, I was expecting that the same ...
0
votes
2answers
118 views

Why is apt upgrade changing my x-www-browser to google-chrome-stable?

For the second time now, I've just run apt upgrade and had this happen: [...] Setting up google-chrome-stable (48.0.2564.116-1) ... update-alternatives: using /usr/bin/google-chrome-stable to provide ...
1
vote
2answers
3k views

“except (IOError, OSError), e: SyntaxError: invalid syntax” when configuring python-lockfile

I am having trouble installing any new packages in Ubuntu because of python. I tried sudo apt-get install python3 python3-dev but I am getting the following output :: dpkg: error processing python-...
3
votes
2answers
9k views

apt-get: hash sum mismatch

Running "sudo apt-get update" results in: W: Failed to fetch gzip:/var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_saucy-security_main_binary-i386_Packages Hash Sum mismatch W: ...
0
votes
1answer
81 views

Issue with bash script running from php as root

I'm making a php panel from which you can install apps like owncloud & plex on your server. I've created multiple bash scripts that install and remove software. I tested all of them from shell, ...
0
votes
0answers
92 views

I cant update Elementary OS 0.3.2 Freya (64-bit)

Everytime I try to run sudo apt update get this: Hit http://download.virtualbox.org trusty InRelease Hit http://download.virtualbox.org trusty/contrib amd64 Packages Hit http://...
2
votes
1answer
194 views

How can I install pdfedit on Debian Jessie?

How can I install pdfedit on Debian Jessie? I have tried to install it with apt-get install but it seems it has not been updated for Jessie.
3
votes
1answer
1k views

Having some trouble authenticating via proxy in order to use apt-get successfully on a corporate network

Our server is on a corporate network, which requires corporate proxy authentication (e.g. enter corporate username and password). This is not an issue on the Windows machines on that network - when a ...
1
vote
1answer
184 views

Why Linux has so many dependency problems when installing software while Windows doesn't except for few like VC++? [closed]

I'm a Windows user and I need to also use Linux distros heavily for work. Installing software has been so difficult with all dependency missing/version not upgraded/OS distro version unmatch. Not ...
3
votes
1answer
62 views

Why did 'apt-get autoremove' not work properly?

I installed Pipelight from the PPA archive, according to these instructions. The installation command, sudo apt-get install --install-recommends pipelight-multi was for only one package, but it ...
3
votes
1answer
67 views

Why is apt installing a package during a purge?

I'm switching from Apache2 to nginx. So I issued this command: sudo apt-get purge apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following ...
2
votes
1answer
21 views

Make sure package can not be deleted

I have some PCs running various types of debian testing to have the latest version of a number of packages. Usually this works great for my usage, but occasionally, an apt-get dist-upgrade wants to ...
3
votes
2answers
945 views

apt-get update exit status

How check the status of apt-get update? $ apt-get update ; echo "status is: $?" Err http://security.debian.org stable/updates Release.gpg Could not resolve 'security.debian.org' Hit http://192.168.1....
1
vote
2answers
39 views

Debian security updates [duplicate]

My wheezy server has apt sources set as below deb http://security.debian.org/ wheezy/updates main contrib non-free deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free Are all ...
1
vote
1answer
38 views

How to change Synaptic Package Manager download directory when when I select “download only”?

According to this question, I know that the .deb file located in /var/cache/apt/archives/. But how to change Synaptic download directory? So when we download a package, we can locate it somewhere we ...
5
votes
5answers
310 views

How to run a command before download with apt-get?

How can I run a command before apt-get starts to download a package? I know about the dpkg pre-invoke hook ( hook a script to apt-get ), but that seems to be run after the download. $ apt-get update ...
9
votes
1answer
20k views

apt-get prompts for CDs when installing packages, how do I make it stop?

I used ubuntu linux before, and I installed debian OS on my labtop using DVDs that I burned. But when I'm trying to use apt-get to install software, the system always asks me to insert disk to proceed....
3
votes
3answers
376 views

write error: No space left on device. Removing 'extra' packages. Attempting recovery

The Issue: When I type: dpkg-query -Wf '${Package;-40}${Priority}\n' | sort -b -k2,2 -k1,1 I get a list of all installed packages on my machine, example: ... raspberrypi-artwork ...
1
vote
2answers
1k views

fglrx on Debian stretch

How do I install the fglrx driver on Debian stretch? The package tracker states that there is no package available right now, so I added Sid, pinned on 100. When I try to install fglrx-driver now, ...
1
vote
1answer
56 views

Create Local apt repo with staging environment

I am trying to create an apt repository with reprepro which is very straight forward for the most part. I have been using this article as a reference because I liked the structure of having a staging ...
0
votes
3answers
300 views

Couldn't update or install using apt-get [duplicate]

My system is linux mint 16 - 64 bit when I run sudo apt-get update, it ends with the following errors: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-i386/...
0
votes
1answer
77 views

Can't install updated Ruby deb package: ruby1.9.1 conflicts with ruby

I have a .deb package (ruby-2.1.2_amd64.deb) containing a specific version of Ruby I'm trying to install using dpkg, but I'm getting the following error: $ sudo dpkg -i /tmp/chef-solo/ruby-2.1....
1
vote
0answers
11 views

how to use debtags in conjuction with when a package arrived in the debian repository?

Is there a way to use debtags and search within a specific time-frame ? For instance/example, let's say I want to know which game packages came in since 2016 till date. Now AFAIK the debtag for ...
3
votes
2answers
8k views

Why is the kernel version not updated when I upgrade to a newer release?

I think my Debian 8.0 (Jessie) installation is outdated, but the Package Updater always says All packages are up to date. The result of: sudo apt-get update sudo apt-get -u upgrade is 0 upgraded, ...
1
vote
2answers
76 views

Debian dependencies for ttyecho

Which dependencies should a Debian package have, which distributes the binary of ttyecho?
2
votes
1answer
61 views

change cache location path for APT

When using apt, can I tell it to use other then /var/cache/apt location? I tried adding the following line in /etc/apt/apt.conf: % cat /etc/apt/apt.conf Dir::Cache /home/apt and re-run apt but it ...
0
votes
2answers
48 views

files list file for package 'gucharmap' is missing final newline

My OS is debian SID and i can't apt-get install anything because I am greeted with this message everytime: dpkg: unrecoverable fatal error, aborting: files list file for package 'gucharmap' is ...
-1
votes
1answer
110 views

trying a new 2016 openssl package, but still see the old 2012 version. Ubuntu 12.04

I'm trying to install a new 2016 open ssl package, but still see the old 2012 version, on Ubuntu 12.04 . I have a bunch of Ubuntu 12.04 dedicated machines that can't connect to the internet. They're ...
0
votes
1answer
13 views

Ensure clean removal of apt sources without loss of security updates

At the times of Debian Wheezy, I needed php 5.6, so I used dotdeb sources to get it. Now with Debian Jessie, apparently the latest version of php is already 5.6, so I don't need dotdeb anymore. I ...
0
votes
1answer
40 views

How to find all the available packages (and executables) that can fulfill an “alternative”? [duplicate]

By "alternatives" I mean (for the most part; see exception below) the "roles" corresponding to the files under /var/lib/dpkg/alternatives. These roles include awk desktop-background editor global-...
8
votes
5answers
8k views

Reinstalling all Debian packages

I killed by mistake a dpkg process running in the background and I would like to reinstall all packages to be sure everything is allright. First, I tried to get a list of all packages and reinstall ...
17
votes
5answers
27k views

How to work around “Release file expired” problem on a local mirror

I have a local mirror (created with debmirror), and when I run apt-get update after a few days, I get this: E: Release file expired, ignoring file:/home/wena/.repo_bin/dists/sid/Release (invalid ...
3
votes
4answers
631 views

How to find the packages that depend on a certain package in apt?

How can I get, not the dependencies of a package, but the packages that are depending on a certain package? I'm on debian 6.0 Squeeze-LTS (the first-time extension to squeeze for long term support!) ...