Questions tagged [apt-cache]

See apt, the deafult package manager for ubuntu.

Filter by
Sorted by
Tagged with
6
votes
1answer
155 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 | ...
3
votes
1answer
230 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 ...
0
votes
1answer
62 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 ...
0
votes
0answers
20 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 ...
2
votes
0answers
25 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-...
1
vote
1answer
549 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....
2
votes
0answers
43 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 ...
2
votes
1answer
35 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.
0
votes
1answer
75 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-...
4
votes
2answers
82 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, ...
0
votes
0answers
45 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 ...
0
votes
1answer
257 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. ...
3
votes
0answers
64 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 ...
1
vote
0answers
37 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: ...
0
votes
1answer
175 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?
0
votes
1answer
67 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? ...
0
votes
0answers
152 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?
0
votes
1answer
91 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 ...
2
votes
1answer
45 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 ...
5
votes
1answer
1k 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 ...
0
votes
2answers
506 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-...
0
votes
1answer
51 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? # ...
0
votes
2answers
260 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 ...
0
votes
2answers
839 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 ...
0
votes
1answer
362 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, ...
1
vote
0answers
97 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/...
1
vote
2answers
127 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 ...
2
votes
1answer
2k 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 ...
1
vote
2answers
2k 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 ...
1
vote
1answer
2k 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 ...
3
votes
1answer
34 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)
1
vote
1answer
463 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: ...
2
votes
2answers
2k 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 ...
0
votes
0answers
160 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 ...
0
votes
2answers
296 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/...
3
votes
1answer
2k 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 ...
0
votes
1answer
145 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 ...
1
vote
1answer
3k 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....
4
votes
1answer
393 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 ...
0
votes
2answers
3k views

How to determine which package to install?

On the Mac, since I used node to run NodeJS, so I assume I would do the same on Ubuntu (just like gcc for the GNU C Compiler). So I typed node, and it says The program 'node' can be found in the ...
2
votes
2answers
308 views

cant understand the function of apt-cache remove [duplicate]

I needed to reinstall wine from scratch so I first decided to uninstall the current version but, running the command sudo apt-cache pkgnames wine before and after running any of: sudo apt-cache --...
5
votes
3answers
34k views

Using apt-get to remove packages and dependencies

I've recently been reading through a lot of questions/answers/opinions about removing packages and dependencies. There's a lot of different ways to do it, some being overly convoluted and some being ...
1
vote
1answer
19 views

Some packages contain repeated meta data

For example, libelf1 has duplicate package meta data, i.e. $ apt-cache show libelf1 | grep 'Architecture:' Architecture: amd64 Architecture: amd64 Why is that?
1
vote
0answers
62 views

Commands to search by project homepage tag

Some packages list a homepage, such as the one for Texmaker. $ apt-cache show texmaker | grep http Homepage: http://www.xm1math.net/texmaker/ However, I can't find a way to search for the URL of a ...
1
vote
1answer
195 views

How can be found from which repository package has been installed if source was purged from source list [duplicate]

I have several repositories listed in my source list and some ppa added as sources Can I know from which one specific package has been installed? It is still possible if after installation ...
1
vote
0answers
103 views

how to install packages which is not in the cache with python

i install packages in my application using python apt. Some example: import apt cache = apt.cache.Cache() pkg = cache["brukkon"] pkg.mark_install() cache.commit() In this example, brukkon is not in ...
0
votes
1answer
103 views

Best way to cache Ubuntu updates and control when new updates retrieved

What is the best way to cache Ubuntu updates on a server and prevent new updates being added to the cache (from the internet) until I am ready to update the cache? I have read about apt-cacher, apt-...
7
votes
1answer
4k views

apt-get cannot install specific version listed in apt-cache policy

I'm trying to install a particular version of redis-server from a third-party repo using apt-get, that's listed in apt-cache policy, but cannot be installed. For example: $ apt-cache policy redis-...
-1
votes
1answer
4k views

Can't update cache [closed]

I am using Ubuntu 14.04 LTS. I tried to update cache through Ubuntu terminal but it shows some error.I tried through software & updates in software center but after some downloads it failed . "...
1
vote
1answer
86 views

What does it mean that python-keyring “suggests” python-kde4?

I have a pending update for "Get Hot New Stuff" for the KDE Platform (libknewstuff2-4). I don't recall installing anything with KDE dependencies (I'm using vanilla Ubuntu), so I tried to figure out ...