Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian templates cache downloaded packages #5266

Closed
unman opened this issue Aug 22, 2019 · 9 comments · Fixed by QubesOS/qubes-core-agent-linux#218
Closed

Debian templates cache downloaded packages #5266

unman opened this issue Aug 22, 2019 · 9 comments · Fixed by QubesOS/qubes-core-agent-linux#218
Labels
C: Debian/Ubuntu P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. r4.0-bullseye-stable r4.0-buster-stable r4.0-centos-stream8-stable r4.0-fc32-stable r4.0-fc33-stable r4.0-fc34-stable r4.0-stretch-stable T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@unman
Copy link
Member

unman commented Aug 22, 2019

Qubes OS version
R4.0

Affected component(s) or functionality
Debian templates

Brief summary
Installed packages are cached in /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
_1. Install packages or use qubes-updater
2. ls /var/cache/apt/archives

Expected behavior
Packages will not be retained in cache

Actual behavior
Packages are retained in cache.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
We clean cache after installation.

Although this is standard Debian behavour, in Qubes context, I'm not sure it makes sense to retain packages in cache for every template.
That said, /var/cache/apt/archives is important and shouldnt be removed

Solutions you've tried
apt-get clean is standard route.
Setting APT::Keep-Downloaded-Packages "0"

Relevant documentation you've consulted
A list of links to the Qubes documentation (or other relevant software documentation) pages you have already consulted.

Related, non-duplicate issues
A list of links to other bug reports, feature requests, or tasks in the qubes-issues tracker (or "none" if you didn't find any). Do not describe any other unreported bugs, features, or tasks here.

@unman unman added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. labels Aug 22, 2019
@andrewdavidwong andrewdavidwong added this to the Release 4.0 updates milestone Aug 23, 2019
@andrewdavidwong
Copy link
Member

Since this has the 4.0 milestone, the fix is pending backport to 4.0, right?

@andrewdavidwong andrewdavidwong added the backport pending On closed issues, indicates fix released for newer version will be backported to older version. label Jun 8, 2021
@unman
Copy link
Member Author

unman commented Jun 9, 2021 via email

@andrewdavidwong
Copy link
Member

On Tue, Jun 08, 2021 at 01:52:15PM -0700, Andrew David Wong wrote:

Since this has the 4.0 milestone, the fix is pending backport to 4.0, right?

If it's not there, yes.

I didn't think it would already be there when there are no qubesbot comments on this issue stating so.

marmarek pushed a commit to QubesOS/qubes-core-agent-linux that referenced this issue Sep 16, 2021
(cherry picked from commit af20dbc)

Notes from origin:
    Fixes QubesOS/qubes-issues#5266
@qubesos-bot
Copy link

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r4.0 testing repository for the CentOS centos-stream8 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The component core-agent-linux (including package python2-dnf-plugins-qubes-hooks-4.0.63-1.fc32) has been pushed to the r4.0 testing repository for the Fedora template.
To test this update, please install it with the following command:

sudo dnf update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package qubes-core-agent_4.0.63-1 has been pushed to the r4.0 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing buster-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package core-agent-linux has been pushed to the r4.0 stable repository for the CentOS centos-stream8 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The component core-agent-linux (including package python2-dnf-plugins-qubes-hooks-4.0.63-1.fc32) has been pushed to the r4.0 stable repository for the Fedora template.
To install this update, please use the standard update command:

sudo dnf update

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package qubes-core-agent_4.0.63-1+deb10u1 has been pushed to the r4.0 stable repository for the Debian template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Debian/Ubuntu P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. r4.0-bullseye-stable r4.0-buster-stable r4.0-centos-stream8-stable r4.0-fc32-stable r4.0-fc33-stable r4.0-fc34-stable r4.0-stretch-stable T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
4 participants