My chroot is successful to connect to the internet, but apt, apt-get, aptitude gives the following issue:
Code: Select all
Ign:1 http://ftp.us.debian.org/debian stretch InRelease
Get:2 http://ftp.us.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:4 http://security.debian.org stretch/updates InRelease [62.9 kB]
Err:2 http://ftp.us.debian.org/debian stretch-updates InRelease
Unknown error executing apt-key
Hit:5 http://ftp.us.debian.org/debian stretch Release
Err:6 http://ftp.us.debian.org/debian stretch Release.gpg
Unknown error executing apt-key
Err:4 http://security.debian.org stretch/updates InRelease
Unknown error executing apt-key
Err:3 http://ftp.debian.org/debian stretch-backports InRelease
Unknown error executing apt-key
Fetched 246 kB in 1min 14s (3,277 B/s)
Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PackageKit was not provided by any .service files
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.us.debian.org/debian stretch-updates InRelease: Unknown error executing apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.us.debian.org/debian stretch Release: Unknown error executing apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org stretch/updates InRelease: Unknown error executing apt-key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.debian.org/debian stretch-backports InRelease: Unknown error executing apt-key
W: Failed to fetch http://ftp.us.debian.org/debian/dists/stretch-updates/InRelease Unknown error executing apt-key
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease Unknown error executing apt-key
W: Failed to fetch http://ftp.debian.org/debian/dists/stretch-backports/InRelease Unknown error executing apt-key
W: Failed to fetch http://ftp.us.debian.org/debian/dists/stretch/Release.gpg Unknown error executing apt-key
W: Some index files failed to download. They have been ignored, or old ones used instead.
Edit 1: the install is on hard disk partition.
Thankyou
Edit 2: Solution: used within the chroot environment:
source /etc/profile