$ cd `mktemp -d`apt purge とか apt autoclean でも起きる
$ rm -rf `pwd`
$ ls -a
$ sudo apt install hellosh: 0: getcwd() failed: No such file or directory
Installing:
hellosh: 0: getcwd() failed: No such file or directory
Summary:
Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 151
sh: 0: getcwd() failed: No such file or directory
Download size: 77.4 kB
Space needed: 377 kB / 18.7 GB available取得:1 http://ftp.debian.org/debian sid/main amd64 hello amd64 2.12.3-1 [77.4 kB]
77.4 kB を 1秒 で取得しました (126 kB/s)
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
:
#1043465 - dpkg-preconfigure: produces errors when run from a non-existing directory - Debian Bug report logs https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043465
#686782 - "cd /" before executing the maintainer scripts - Debian Bug report logs https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686782
apt はまだバグレポ無さそう?あとでちゃんと確認する
https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=apt;dist=unstable