:: build: Probably running as root in charmcraft, proactively installing the `git` and `virtualenv` packages.
::
:: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
::
:: Reading package lists...
:: Building dependency tree...
:: Reading state information...
:: The following additional packages will be installed:
:: git-man libcurl3-gnutls liberror-perl python-pip-whl python3-pkg-resources
:: python3-virtualenv
:: Suggested packages:
:: gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
:: git-gui gitk gitweb git-cvs git-mediawiki git-svn python3-setuptools
:: Recommended packages:
:: less
:: The following NEW packages will be installed:
:: git git-man libcurl3-gnutls liberror-perl python-pip-whl
:: python3-pkg-resources python3-virtualenv virtualenv
:: 0 upgraded, 8 newly installed, 0 to remove and 123 not upgraded.
:: Need to get 6775 kB of archives.
:: After this operation, 37.2 MB of additional disk space will be used.
:: Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl3-gnutls amd64 7.58.0-2ubuntu3.20 [219 kB]
:: Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 liberror-perl all 0.17025-1 [22.8 kB]
:: Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.12 [804 kB]
:: Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.12 [3930 kB]
:: Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3~ubuntu1.18.04.5 [1653 kB]
:: Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-pkg-resources all 39.0.1-2 [98.8 kB]
:: Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 python3-virtualenv all 15.1.0+ds-1.1 [43.4 kB]
:: Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 virtualenv all 15.1.0+ds-1.1 [4476 B]
:: debconf: delaying package configuration, since apt-utils is not installed
:: Fetched 6775 kB in 1s (5230 kB/s)
:: dpkg: error: PATH is not set
:: E: Sub-process /usr/bin/dpkg returned an error code (2)
:: Traceback (most recent call last):
:: File "/snap/charm/684/usr/bin/charm-build", line 33, in <module>
:: sys.exit(load_entry_point('charm-tools==0.0.0', 'console_scripts', 'charm-build')())
:: File "/snap/charm/684/usr/lib/python3.10/site-packages/charmtools/build/builder.py", line 1237, in main
:: build.workaround_charmcraft_maybe_ensure_build_packages()
:: File "/snap/charm/684/usr/lib/python3.10/site-packages/charmtools/build/builder.py", line 789, in workaround_charmcraft_maybe_ensure_build_packages
:: subprocess.run(('apt', '-y', 'install', 'git', 'virtualenv'), check=True, env={})
:: File "/snap/charm/684/usr/lib/python3.10/subprocess.py", line 524, in run
:: raise CalledProcessError(retcode, process.args,
:: subprocess.CalledProcessError: Command '('apt', '-y', 'install', 'git', 'virtualenv')' returned non-zero exit status 100.