$ dpkg -l | grep libguestfs
ii libguestfs-hfsplus:amd64 1:1.36.13-1ubuntu3.3 amd64 guest disk image management system - HFS+ support
ii libguestfs-perl 1:1.36.13-1ubuntu3.3 amd64 guest disk image management system - Perl bindings
ii libguestfs-reiserfs:amd64 1:1.36.13-1ubuntu3.3 amd64 guest disk image management system - ReiserFS support
ii libguestfs-tools 1:1.36.13-1ubuntu3.3 amd64 guest disk image management system - tools
ii libguestfs-xfs:amd64 1:1.36.13-1ubuntu3.3 amd64 guest disk image management system - XFS support
ii libguestfs0:amd64 1:1.36.13-1ubuntu3.3 amd64 guest disk image management system - shared library
Verification on Bionic.
Following the test case in the description :
$ sudo guestfish -a xenial- server- cloudimg- amd64-disk1. img --network -v << EOF security. ubuntu. com/ubuntu xenial-security InRelease [109 kB] archive. ubuntu. com/ubuntu xenial InRelease archive. ubuntu. com/ubuntu xenial-updates InRelease [109 kB] archive. ubuntu. com/ubuntu xenial-backports InRelease [107 kB] security. ubuntu. com/ubuntu xenial- security/ main amd64 Packages [667 kB] security. ubuntu. com/ubuntu xenial- security/ main Translation-en [269 kB] security. ubuntu. com/ubuntu xenial- security/ universe amd64 Packages [438 kB] security. ubuntu. com/ubuntu xenial- security/ universe Translation-en [178 kB] security. ubuntu. com/ubuntu xenial- security/ multiverse amd64 Packages [5600 B] security. ubuntu. com/ubuntu xenial- security/ multiverse Translation-en [2676 B] archive. ubuntu. com/ubuntu xenial/universe amd64 Packages [7532 kB] archive. ubuntu. com/ubuntu xenial/universe Translation-en [4354 kB] archive. ubuntu. com/ubuntu xenial/multiverse amd64 Packages [144 kB] archive. ubuntu. com/ubuntu xenial/multiverse Translation-en [106 kB] archive. ubuntu. com/ubuntu xenial-updates/main amd64 Packages [966 kB] archive. ubuntu. com/ubuntu xenial-updates/main Translation-en [384 kB] archive. ubuntu. com/ubuntu xenial- updates/ restricted amd64 Packages [7616 B] archive. ubuntu. com/ubuntu xenial- updates/ restricted Translation-en [2272 B] archive. ubuntu. com/ubuntu xenial- updates/ universe amd64 Packages [750 kB] archive. ubuntu. com/ubuntu xenial- updates/ universe Translation-en [312 kB] archive. ubuntu. com/ubuntu xenial- updates/ multiverse amd64 Packages [16.7 kB] archive. ubuntu. com/ubuntu xenial- updates/ multiverse Translation-en [8440 B] archive. ubuntu. com/ubuntu xenial- backports/ main amd64 Packages [7280 B] archive. ubuntu. com/ubuntu xenial- backports/ main Translation-en [4456 B] archive. ubuntu. com/ubuntu xenial- backports/ universe amd64 Packages [7804 B] archive. ubuntu. com/ubuntu xenial- backports/ universe Translation-en [4184 B]
run
mount /dev/sda1 /
command 'apt update'
EOF
libguestfs: launch: program=guestfish
libguestfs: launch: version=1.36.13
libguestfs: launch: backend registered: unix
...
Get:1 http://
Hit:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Fetched 16.5 MB in 32s (504 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
109 packages can be upgraded. Run 'apt list --upgradable' to see them.
...
Now 'apt update' works.
$ dpkg -l | grep libguestfs hfsplus: amd64 1:1.36. 13-1ubuntu3. 3 amd64 guest disk image management system - HFS+ support 13-1ubuntu3. 3 amd64 guest disk image management system - Perl bindings reiserfs: amd64 1:1.36. 13-1ubuntu3. 3 amd64 guest disk image management system - ReiserFS support 13-1ubuntu3. 3 amd64 guest disk image management system - tools xfs:amd64 1:1.36. 13-1ubuntu3. 3 amd64 guest disk image management system - XFS support 13-1ubuntu3. 3 amd64 guest disk image management system - shared library
ii libguestfs-
ii libguestfs-perl 1:1.36.
ii libguestfs-
ii libguestfs-tools 1:1.36.
ii libguestfs-
ii libguestfs0:amd64 1:1.36.