Broken in security (ubuntu2.19), fixed in proposed (ubuntu2.20).
root@tt:~# apt search -o RootDir=/dev/null foobar
Segmentation fault (core dumped)
root@tt:~# apt install apt libapt-pkg4.12
[...]
Unpacking libapt-pkg4.12:amd64 (1.0.1ubuntu2.20) over (1.0.1ubuntu2.19) ...
Unpacking apt (1.0.1ubuntu2.20) over (1.0.1ubuntu2.19) ...
[...]
root@tt:~# apt search -o RootDir=/dev/null foobar
W: Unable to read /dev/null/etc/apt/sources.list.d/ - DirectoryExists (20: Not a directory)
W: Unable to read /dev/null/etc/apt/sources.list - RealFileExists (20: Not a directory)
E: Could not open file /dev/null/var/lib/dpkg/status - open (20: Not a directory)
E: The package lists or status file could not be parsed or opened.
Broken in security (ubuntu2.19), fixed in proposed (ubuntu2.20).
root@tt:~# apt search -o RootDir=/dev/null foobar pkg4.12: amd64 (1.0.1ubuntu2.20) over (1.0.1ubuntu2.19) ... etc/apt/ sources. list.d/ - DirectoryExists (20: Not a directory) etc/apt/ sources. list - RealFileExists (20: Not a directory) var/lib/ dpkg/status - open (20: Not a directory)
Segmentation fault (core dumped)
root@tt:~# apt install apt libapt-pkg4.12
[...]
Unpacking libapt-
Unpacking apt (1.0.1ubuntu2.20) over (1.0.1ubuntu2.19) ...
[...]
root@tt:~# apt search -o RootDir=/dev/null foobar
W: Unable to read /dev/null/
W: Unable to read /dev/null/
E: Could not open file /dev/null/
E: The package lists or status file could not be parsed or opened.