[Bug 1955859] Re: ubuntu-base on jammy daily: apt-key has no access to /dev/null

Julian Andres Klode 1955859 at bugs.launchpad.net
Tue Dec 28 09:23:55 UTC 2021


Thanks for your bug report. I believe you meant ubuntu-base, not ubuntu-
core (the snap based one)

How did you test this? This seems to me like you forgot to populate
/dev, either statically or by bind mounting the /dev from the host.

The tarball only contains an empty /dev, and the permissions have not
changed.

jak at jak-t480s:~/Downloads$ tar tvzf jammy-base-amd64.tar.gz  dev
drwxr-xr-x root/root         0 2021-12-28 06:01 dev/
jak at jak-t480s:~/Downloads$ tar tvzf focal-base-amd64.tar.gz  dev
drwxr-xr-x root/root         0 2021-12-28 05:44 dev/

If APT had succeeded *creating* /dev/null as a regular files, all hell
would have broken lose, so I am kind of happy that did not happen.

For the record, the reason it fails with EPERM seems to be that it's
apt-key that's failing and it's run as the user _apt by apt.

** Summary changed:

- ubuntu-core on jammy daily: apt-key has no access to /dev/null
+ ubuntu-base on jammy daily: apt-key has no access to /dev/null

** Changed in: apt (Ubuntu)
       Status: New => Incomplete

** Also affects: ubuntu-qa-website
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1955859

Title:
  ubuntu-base on jammy daily: apt-key has no access to /dev/null

Status in Ubuntu QA Website:
  New
Status in apt package in Ubuntu:
  Invalid

Bug description:
  Ubuntu Jammy Core - Smoke test fails.

  One of the issues that I believe may be the primary issue is that apt-
  key has no access to /dev/null.

  root at Joshua-PC:/# apt-get update
  Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
  Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
  Get:3 http://security.ubuntu.com/ubuntu jammy-security Release [89.8 kB]
  Get:4 http://security.ubuntu.com/ubuntu jammy-security Release.gpg [819 B]
  0% [Waiting for headers]/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Ign:4 http://security.ubuntu.com/ubuntu jammy-security Release.gpg
  Ign:5 http://archive.ubuntu.com/ubuntu jammy InRelease                         
  Get:6 http://archive.ubuntu.com/ubuntu jammy-updates Release [89.8 kB]         
  Get:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [90.7 kB]     
  0% [Working]                                                       13.8 kB/s 0s/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Err:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease               
    gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Get:8 http://archive.ubuntu.com/ubuntu jammy Release [269 kB]                  
  Get:9 http://archive.ubuntu.com/ubuntu jammy-updates Release.gpg [819 B]       
  0% [Working]                                                       13.8 kB/s 6s/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Ign:9 http://archive.ubuntu.com/ubuntu jammy-updates Release.gpg               
  Get:10 http://archive.ubuntu.com/ubuntu jammy Release.gpg [819 B]              
  0% [Working]                                                       13.8 kB/s 6s/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Ign:10 http://archive.ubuntu.com/ubuntu jammy Release.gpg                      
  Reading package lists... Done                                                  
  W: GPG error: http://security.ubuntu.com/ubuntu jammy-security Release: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://security.ubuntu.com/ubuntu jammy-security Release' is not signed.
  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  N: See apt-secure(8) manpage for repository creation and user configuration details.
  W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed.
  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  N: See apt-secure(8) manpage for repository creation and user configuration details.
  W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates Release: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates Release' is not signed.
  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  N: See apt-secure(8) manpage for repository creation and user configuration details.
  W: GPG error: http://archive.ubuntu.com/ubuntu jammy Release: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://archive.ubuntu.com/ubuntu jammy Release' is not signed.
  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  N: See apt-secure(8) manpage for repository creation and user configuration details.

  ProblemType: Bug
  DistroRelease: Ubuntu 21.10
  Package: apt 2.3.9
  ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
  Uname: Linux 5.13.0-22-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu71
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Dec 27 20:14:22 2021
  InstallationDate: Installed on 2020-10-23 (430 days ago)
  InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
  ProcEnviron:
   SHELL=/bin/bash
   LANG=en_US.UTF-8
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
   PATH=(custom, no user)
  SourcePackage: apt
  UpgradeStatus: Upgraded to impish on 2021-10-15 (73 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-qa-website/+bug/1955859/+subscriptions




More information about the foundations-bugs mailing list