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

chore: ensure unattended-upgrades killing #3934

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Mar 26, 2024

1. Explain what the PR does

8959a2e chore: ensure unattended-upgrades killing

2. Explain how to test it

3. Other comments

Issue:

https://github.com/aquasecurity/tracee/actions/runs/8440398742/job/23117187309

Run ./tests/e2e-install-deps.sh
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable unattended-upgrades
Removed /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service.
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1551 (apt-get)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1551 (apt-get)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Waiting for other software managers to finish...
All apt locks are free.
Hit:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1505 kB]
Get:6 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [290 kB]
Get:7 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [16.1 kB]
Get:8 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1628 kB]
Get:9 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [273 kB]
Get:10 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [520 B]
Get:11 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1059 kB]
Get:12 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [240 kB]
Get:13 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]
Get:14 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [42.1 kB]
Get:15 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [10.1 kB]
Get:16 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]
Get:[17](https://github.com/aquasecurity/tracee/actions/runs/8440398742/job/23117187309#step:3:18) http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [67.1 kB]
Get:[18](https://github.com/aquasecurity/tracee/actions/runs/8440398742/job/23117187309#step:3:19) http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.0 kB]
Get:[19](https://github.com/aquasecurity/tracee/actions/runs/8440398742/job/23117187309#step:3:20) http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:[20](https://github.com/aquasecurity/tracee/actions/runs/8440398742/job/23117187309#step:3:21) http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [28.4 kB]
Get:[21](https://github.com/aquasecurity/tracee/actions/runs/8440398742/job/23117187309#step:3:22) http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]
Get:22 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]
Get:23 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1290 kB]
Get:24 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [230 kB]
Get:25 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.4 kB]
Get:26 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1600 kB]
Get:27 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [268 kB]
Get:28 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [520 B]
Get:29 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [851 kB]
Get:30 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [162 kB]
Get:31 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.8 kB]
Get:32 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37.1 kB]
Get:33 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7476 B]
Get:34 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Fetched 10.0 MB in 4s (2787 kB/s)
Reading package lists...
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1580 (unattended-upgr)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Error: Process completed with exit code 100.

@geyslan geyslan self-assigned this Mar 26, 2024
@geyslan geyslan merged commit fbbd828 into aquasecurity:main Mar 26, 2024
33 checks passed
@geyslan geyslan deleted the fix-e2e-install-deps branch June 28, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant