Apt update & apt upgrade in chroot problem

Asked by Scott Heffner

Using Kubuntu 18.04.2 KDE 64 bit OS. Trying to remaster Linux Mint XFCE 19.2 64 bit with Cubic Ver. 2019.11-59-release~201911270317~ubuntu18.04.1. Trying to update software In the chroot environment of Cubic, I do "apt update" and "apt upgrade. It gives me several errors below. When i run the live Linux Mint XFCE 19.2 and go to terminal and run sudo apt-get update and sudo apt-get upgrade it works. Won't work without sudo. Get error when using sudo on Cubic. I remastered Linux Mint 18.2 MATE 64 bit last year with Cubic with no problem updating software.

groups: cannot find name for group ID 130
mesg: ttyname failed: No such device
root@scott-HP-EliteBook-8560p:~ # You are in the chroot environment.

root@scott-HP-EliteBook-8560p:~ # dpkg-divert --local --rename --add /sbin/initctl
Adding 'local diversion of /sbin/initctl to /sbin/initctl.distrib'

root@scott-HP-EliteBook-8560p:~ # sudo apt-get upgrade
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be owned by uid 0

root@scott-HP-EliteBook-8560p:~ # apt-get update
Ign:1 http://packages.linuxmint.com tina InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://packages.linuxmint.com tina Release [24.2 kB]
Get:4 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:6 http://packages.linuxmint.com tina Release.gpg [819 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:5 http://archive.ubuntu.com/ubuntu bionic InRelease
  At least one invalid signature was encountered.
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:4 http://archive.canonical.com/ubuntu bionic InRelease
  At least one invalid signature was encountered.
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
  At least one invalid signature was encountered.
Err:6 http://packages.linuxmint.com tina Release.gpg
  At least one invalid signature was encountered.
Err:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  At least one invalid signature was encountered.
Err:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  At least one invalid signature was encountered.
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: At least one invalid signature was encountered.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com/ubuntu bionic InRelease: At least one invalid signature was encountered.
W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.linuxmint.com tina Release: At least one invalid signature was encountered.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: At least one invalid signature was encountered.
root@scott-HP-EliteBook-8560p:~ # apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@scott-HP-EliteBook-8560p:~ #

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Scott Heffner
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what output do you receive for the commands

ls -l /usr/lib/sudo/sudoers.so
apt-key list
grep 130 /etc/groups
grep 130 /etc/passwd

in the chroot?

Revision history for this message
Scott Heffner (scott-likes-breadsticks2020) said :
#2

 I found out what the problem was. Tried to use an external hard drive to save the remastered ISO to. The external drive is formatted to NTFS. Choose to save the remastered ISO to drive with Kubuntu 18.04.2 KDE 64 bit OS with EXT4 file system. It worked this time with Apt update & apt upgrade in chroot with no errors.