Questions tagged [apt-cache]

See apt, the deafult package manager for ubuntu.

Filter by
Sorted by
Tagged with
0
votes
1answer
55 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. ...
0
votes
0answers
73 views

APT- When does /var/lib/apt/lists/*_Packages file get updated?

/var/lib/apt/lists directory has two kinds of files (*_Packages, *_Translation-en). /var/lib/apt/lists/*_Packages - contains the full package information with short description. /var/lib/apt/lists/*...
3
votes
0answers
41 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
23 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
69 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
52 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
45 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
50 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 ...
1
vote
1answer
42 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 ...
3
votes
0answers
715 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
296 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
47 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
176 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
590 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
292 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
89 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
114 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 ...
1
vote
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
1k 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
1k 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
32 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
369 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: ...
1
vote
1answer
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
138 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
227 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
1k 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
139 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 ...
0
votes
1answer
2k 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
314 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
267 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 --...
3
votes
2answers
23k 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
18 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
57 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
180 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
97 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
94 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-...
6
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
2k 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
79 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 ...
-1
votes
2answers
277 views

Way to get apt-cache search to work as well as Synaptic search?

Say I want to uninstall the Dash item "Ubuntu Software Center". To uninstall it via CLI, I have to know what the .deb package is called. So I apt-cache search ubuntu-software-center but the only ...
0
votes
0answers
59 views

List packages by section [duplicate]

I can run these commands to show the "Section" of certain packages $ apt-cache show bash | grep Section Section: shells $ apt-cache show procps | grep Section Section: admin I would like a command ...
1
vote
1answer
3k views

Ubuntu 14 LTS install via PXE using ks.cfg - No unity after install

I am trying to setup a PXE server with a ks.cfg to automate install. I have an apt-cache based repo. This is to serve as a host for nearly 200 machines. The installation goes fine, but at the end, ...
10
votes
1answer
6k views

Difference between apt-cacher and apt-cacher-ng

What exactly is the difference between apt-cacher and apt-cacher-ng? I can't seem to find anywhere comparing the two. I've found tutorials and manuals on both of them, and they seem to be the same ...
13
votes
1answer
2k views

What does the pipe | indicate in apt-cache rdepends?

As I understand it, rdepends lists packages which depend on the specified package. Example: $ apt-cache rdepends abiword abiword Reverse Depends: abiword:i386 xubuntu-desktop |python-carquinyol-...
3
votes
2answers
3k views

Script to clean system [closed]

I want a script to clean my system. Clean unused dependencies. Clean apt-cache. Clean residual-config files. Remove broken packages. Only keep the latest version of packages and remove ...
0
votes
2answers
97 views

Synching package indexes across identical computers

Is it safe to copy the package index files (which get updated when I run apt-get update) from one computer to another identical one? Basically, I've run apt-get update on one of them, and I don't want ...
0
votes
1answer
735 views

Why `postgresql` package is not listed when executing `apt-cache search postgresql`?

I just had to install postgresql server on my machine so I did: apt-cache search postgresql and it listed a bunch of packages related to postgresql: [...] postgis - Geographic objects support for ...
10
votes
4answers
20k views

using apt-cache search

I am learning how to use apt. When I do an apt-cache search git to see all packages matching git, I see a bunch of packages whose descriptions have nothing to do with git. Why is this so and how can I ...
3
votes
2answers
2k views

Questions about apt-cache showpkg

when I enter $ apt-cache showpkg gnome-devel in my terminal, I get : Package: gnome-devel Versions: 1:3.0+6ubuntu4 (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_quantal_universe_binary-...