Questions tagged [apt-cache]

See apt, the deafult package manager for ubuntu.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

How to clean /var/cache/apt/archives and install Beachbit

When I try to install bleachbit in ubuntu 20.04.5 after this command $ sudo apt-get install bleachbit I found this error... Reading package lists... Done Building dependency tree Reading state ...
Talha Naeem's user avatar
0 votes
1 answer
38 views

apt-cache search : command not found

I am using an Amazon EC2 instance with Ubuntu 22.04.1 LTS installed. I am getting "command not found" whenever I try to use "apt-cache search", both with and without "sudo &...
davej's user avatar
  • 131
0 votes
1 answer
267 views

What's the difference between `apt search <package-name>` and `apt-cache search <package-name>`?

When searching for packages in the apt repository we can use apt search <package-name> and apt-cache search <package-name> inside the terminal and we get a list of package names matching &...
skekmal's user avatar
  • 135
1 vote
1 answer
616 views

Size of a package: "Installed-Size" vs "Size"

I am trying to find out a package size. I tried the following command: $ apt-cache show mlocate | grep Size Installed-Size: 252 Size: 50136 Does "Installed-Size" mean size after unpacking ...
Yaniv G's user avatar
  • 127
5 votes
2 answers
767 views

PPA: Install old version

I am trying to install package qelectrotech on ubuntu 18.04. After installing I got (old) version 0.5-2. So I added a PPA (sudo add-apt-repository ppa:scorpio/qelectrotech-dev) source to get the ...
eSlavko's user avatar
  • 163
3 votes
3 answers
1k views

Why is 'apt-cache search' and 'find / -name' showing files associated with a package i have already purged?

I specifically installed libreoffice-writer on my system and then purged it with sudo apt-get purge '*libreoffice-writer*' --autoremove. After this i ran these terminal commands one after the other to ...
skekmal's user avatar
  • 135
0 votes
2 answers
819 views

Multiple outputs for "apt-cache policy <package name>"

From what I understand, apt-cache policy <package name> displays the pinning order and thus the releases of package name available in the apt repositories along with their priority orders. So, ...
Luce's user avatar
  • 125
3 votes
1 answer
816 views

List dependencies of package that I don't already have installed?

I want to know ahead of time how many extra packages need to be installed for a given package. I know I get something like this when I do an apt install -s package | grep ^Inst, but can I get the ...
mattb's user avatar
  • 294
0 votes
1 answer
485 views

apt-cache shows wrong package version available

I'm going mad with the following issue. I've added a PPA (ppa:savoury1/encryption) on two machines running Ubuntu 20.10. On the first one, I see: apt-cache policy openssl openssl: Installato: 1.1.1j-...
jasmines's user avatar
  • 10.5k
1 vote
1 answer
410 views

Are ubuntu 20.10 packages compatible with ubuntu 20.04 [duplicate]

I have installed Ubuntu 20.10, since it is non LTS, I'd like to have 20.04. Problem is I have already installed lots of apt packages in my 20.10. So is it possible to reuse the apt cache in my newly ...
User's user avatar
  • 128
1 vote
1 answer
772 views

How do I search the package lists of old Ubuntu releases? [duplicate]

I usually search for packages using apt-cache (e.g. apt-cache search 'flash player') or by using the search functionality on https://packages.ubuntu.com. Now suppose I wish to search the package list ...
Flux's user avatar
  • 465
6 votes
1 answer
398 views

Cannot grep apt-cache show output

I have a list of packages and I want to know which packages are not available in the ubuntu repositories. I type this command but it returns nothing : $ apt-cache show vim TotO perl 2>&1 | ...
SebMa's user avatar
  • 1,939
3 votes
1 answer
3k views

Need to try to install a specific package version -- however apt-cache madison, apt-cache policy only seem to list the latest version

Other SE posts, for example this, show how you can install a specific package version. However, I'm unsure what exactly the naming convention / syntax used for the version I want is. I need to install ...
Spooky's user avatar
  • 51
0 votes
1 answer
260 views

How to quey apt conf for default apt cache size?

I am required to report the default cache size used by apt-cache. I tried below but there is no result. How can I find out the cache size? Any guidance? $ apt-config dump | grep -i APT::Cache-Limit ...
samshers's user avatar
  • 247
0 votes
0 answers
92 views

Generate list of dependent packages with version using top level package from input file in Ubuntu or Debian

Is there something like npm lock-file in Ubuntu/Debian which can generate the Debian package tree with exact versions for direct and transitive dependencies? For example, a lock-file for Redis will be ...
user6058180's user avatar
1 vote
0 answers
38 views

How to leave deb files in cache after installing? APT::Clean-Installed "0" has no effect [duplicate]

I have an HDD installation that has spare space and I would like it to be a backup deb archive. But even with APT::Clean-Installed "0"; in apt.conf and verified with apt-config dump all newly-...
int_ua's user avatar
  • 8,336
3 votes
2 answers
26k views

How to install specific docker version from apt-cache policy docker-ce candidate list

Command "Docker-ce" list all candidates root@ubuntu:/home/master# apt-cache policy docker-ce docker-ce: Installed: (none) Candidate: 5:19.03.6~3-0~ubuntu-xenial Version table: 5:18....
apl's user avatar
  • 91
2 votes
0 answers
267 views

Apt pinning based by url

I want to have in avaiable sources two repos: https://qgis.org/ubuntu https://qgis.org/ubuntugis Is there way to pin first one with priority 600 ans second one with 450? Maybe I can add some option ...
user19291's user avatar
  • 171
2 votes
1 answer
160 views

Listing packages installed outside of official repo

I want to list all the packages in my computer which are not listed in the official ubuntu repo. I needed a script which is fast enough to do the same thing in under a minute.
Eka's user avatar
  • 2,897
0 votes
1 answer
219 views

Difference between apt-get and apt-cache [duplicate]

Being a new comer in Ubuntu environment, I am bit confused between the apt-get and apt-cache. Can anyone explain what is difference between apt-get and apt-cache. And when to use the apt-get and apt-...
DRV's user avatar
  • 103
4 votes
2 answers
242 views

Does apt-cache policy <package_name> require sudo?

Can't find any formal explanation to determine whether apt-cache policy <package_name> command requires sudo or not. Tested it in my machine (Ubuntu) with lots of packages and seems to work, ...
Cheche's user avatar
  • 165
0 votes
0 answers
47 views

why names containing dot are not taken in consideration in the result list using the command "apt-cache pkgnames <name>" [duplicate]

System: Ubuntu 18.04 LTS If you run the following command $ apt-cache pkgnames python . . . python3-case python3-rpy2 python3-pycurl-dbg python3-structlog python-natsort python-protobuf python-rpm ...
christianbueno.1's user avatar
0 votes
1 answer
402 views

How can I get *ALL* the info for available packages in apt at once?

I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. ...
Sida's user avatar
  • 139
3 votes
0 answers
84 views

apt-cache implementation

I am looking at the apt-cache implementation. How does apt-cache create and updates the local package cache? Is it periodic or manual? As far as my investigation, it is manual (apt-get update). When ...
kavitha R's user avatar
1 vote
0 answers
74 views

apt-cache pulls from /var/lib/dpkg/status - How can I prevent this?

I'm attempting to compile some dependency info from an older version of Ubuntu (Artful). Basically I've downloaded the old-release stuff by adding the following lines to my /etc/var/sources.list: ...
chaig's user avatar
  • 11
0 votes
1 answer
542 views

Limit apt-cache show results to only one record (the installation candidate)

Suppose I run apt-cache show foo- it prints out all records for foo . This is a problem if I want to use it from some kind of parsing script. Is there a standard way to show only the first record?
Omer Dagan's user avatar
0 votes
1 answer
120 views

How do I use the C.L.I. to convert packages in the output from apt-cache depends into a space‐separated list for use with apt-get download? [duplicate]

How do I use the command line interface (not a GUI) to convert the list of dependency packages in the output from apt-cache depends into a space‐separated list for use with apt-get download? ...
Patrick Dark's user avatar
0 votes
0 answers
258 views

apt-cacher-ng for different distros OK?

Would setting up apt-cacher-ng in the host and serve it for different dockers running different distros be OK? E.g., even for a Ubuntu host servicing different versions of Debian?
xpt's user avatar
  • 929
0 votes
1 answer
268 views

System freezes, apt-cache running 100% for an hour?

Sorry if I'm overdoing the details. I'm new to the forum, that or I have another account I never knew about. I know the community prefers questions that can be answered, and I'm hoping I can get an ...
Loki Scarlet's user avatar
2 votes
1 answer
50 views

Paranoid control over packages

I am new in Ubuntu (come from Slackware). I would like to install and maintain my system in such a way that I always have available archive of installed packages in the form of deb files, starting ...
Piotr Górkiewicz's user avatar
6 votes
2 answers
5k views

update-java-alternatives jinfo file does not exist

I'm trying to learn how to quickly change which java version my system uses as described in this article: https://aboullaite.me/switching-between-java-versions-on-ubuntu-linux/ I've used apt-get ...
Max Kessler's user avatar
0 votes
2 answers
726 views

How do I remove Tumbler from Xubuntu 16.04?

I want to remove the tumbler package from Xubuntu 16.04. According to the answer here, it can be safely removed from Xubuntu 14.04. The only package that depends on it is the meta-package xubuntu-...
EmmaV's user avatar
  • 219
0 votes
1 answer
79 views

Installed but cannot seen on apt-cache

I have installed ffmpeg and libx264 via that code. I can use ffmpeg and can do simple jobs but if i write apt-cache ffmpeg it returns me Installed: (none) Why i cannot see it in apt-cache? # ...
mcan's user avatar
  • 123
0 votes
2 answers
477 views

Pycharm and other packages don't appear in the apt-cache search list [duplicate]

I can find PyCharm Pro, PyCharm CE, and PyCharm EDU in Ubuntu Software app, but I am trying to get better with apt-get commands in a terminal window. Yet when I type apt-cache search PyCharm I am ...
Yupitshat's user avatar
0 votes
2 answers
1k views

Cannot update package from ppa

I cannot upgrade handbrake using ppa:stebbins/handbrake-releases Under /etc/apt/sources.list.d I find the following file stebbing-handbrake-releases-trusty.list This contains the correct links: deb ...
wouter205's user avatar
  • 1,151
0 votes
1 answer
769 views

apt-offline for either offline or online system (mariadb 10.2 install)

I have a case where a product update may be done on either an internet-connected or non-internet connected 14.0.4 system. As part of the product update, it needs to switch from mysql to mariadb, ...
Jeremy Greene's user avatar
1 vote
0 answers
98 views

core dump for apt-cache update [duplicate]

I am trying to update my apt cache, but after a few hits I get this error semantic@semantic-Tech:~$ sudo apt-get update [sudo] password for semantic: Hit:1 https://download.sublimetext.com apt/...
moonwalker7's user avatar
1 vote
2 answers
204 views

Where is the information from 'apt show <packagename>' stored?

I have the following problem: I wrote a script, that extracts information about the installed packages of my system (Ubuntu 16.04 LTS). I am particularly interested in the source of the package. This ...
KyuMirthu's user avatar
  • 113
2 votes
1 answer
3k views

How to figure out the package version from "apt-cache show" output if there's two packages?

I've never seen that apt-cache show [exact package name] shows two package information blocks (after sudo apt-get clean): > sudo apt-cache show nvidia-367 Package: nvidia-367 Priority: optional ...
Kalle Richter's user avatar
6 votes
2 answers
3k views

apt-cache/apt search packages that are not installed

I can search packages with apt-cache search <package_name>, or search installed packages with apt list --installed | grep <package_name>. How about packages that are not installed? How ...
Kong Chun Ho's user avatar
2 votes
1 answer
3k views

apt-cache does not show older versions of a package

I need to downgrade jenkins from 2.54 to 2.53. Repo is set up as follows: $ cat /etc/apt/sources.list.d/jenkins.list deb http://pkg.jenkins-ci.org/debian binary/ The repo contains version 2.53 so I ...
Iokanaan Iokan's user avatar
3 votes
1 answer
37 views

Is this expected apt-cache behavior?

Shouldn't the number of pkgnames match "Total Package names?" ericm@saxman:~$ apt-cache pkgnames | sort | wc -l 54411 ericm@saxman:~$ apt-cache stats Total package names: 70821 (1,416 k)
R5w2ii33HhLSq's user avatar
1 vote
1 answer
958 views

Error 500 in apt-cache policy

I have installed jasper using synaptic manager. When I tried to check the version using: apt-cache policy jasper this was displayed: jasper: Installed: (none) Candidate: 0.69 Version table: ...
R. Athulya's user avatar
3 votes
2 answers
3k views

List available ffmpeg versions on 14.04

Ubuntu 14.04 server here. I want to see what versions of ffmpeg are available for download. Usually I can run apt-cache policy <packageName> to do this, but because ffmpeg was excluded from the ...
smeeb's user avatar
  • 275
0 votes
0 answers
212 views

Why does apt-cache policy claim libpng-dev doesn't exist?

When I run apt-cache policy libpng-dev I get output that says: libpng-dev: Installed: (none) Candidate: (none) Version table: Why? Isn't this command supposed to show you what version(s) are ...
smeeb's user avatar
  • 275
0 votes
2 answers
824 views

How to do an offline installation of packages in ubuntu 12.04 by exporting this folder /var/cache/apt/*

Suppose I'm on a machine with full internet access and do "apt-get update" it then updates the cache /var/cache/apt/* with binary files. Now I do a "apt-get install pkgname" and inside /var/cache/apt/...
Linus_30's user avatar
3 votes
1 answer
3k views

Why does command apt-cache show result in "E: no packages found"? Ubuntu 16.04

I don't understand why my apt-cache would be empty, as there is a gazillion packages installed on my system (like all Ubuntu systems). I tried installing a random program and running it thinking that ...
thinksinbinary's user avatar
0 votes
1 answer
172 views

Using apt-cacher for multiple ubuntu release

I am working, which has around 40 employees and almost everyone is using ubuntu desktop 14.04. I have created a local ubuntu repository(ubuntu 14.04) using apt-cacher. I am using it for updating ...
kaushik karan's user avatar
1 vote
2 answers
4k views

remove stuck package: subprocess installed post-installation script was killed

It failed during dist-upgrade. I already removed this package PPA from sources, but if I do dist-upgrade or install -f, it still tries to execute this setup script and dies: Setting up yd-tools (1.8....
MInner's user avatar
  • 383
4 votes
1 answer
560 views

apt-cache unmet shows non-existent packages

Running apt-cache unmet outputs a 1.2 MB file of missing dependencies of packages, none of which exist (the packages themselves). This is possibly due to restoring old configurations to a fresh ...
egy's user avatar
  • 423