matoken:susie:

@matoken@snac.matoken.org

Linux user.
Site: ✔ https://matoken.org/
Blog: https://matoken.org/blog/
GPG Key: 572E532C

Location: 31.2,130.8

0 ★ 0 ↺

[?]matoken:susie: » 🌐
@matoken@snac.matoken.org

一旦Ctrl + z して確認すると確かにもうない場所だったorz

$ ls -a
$ touch hoge
touch: 'hoge' に touch できません: そのようなファイルやディレクトリはありません
一旦apt upgrade 中断してカレントディレクトリ変更して再度……普通に処理が進んでいそうです
$ kill %1
$ cd
$ sudo apt upgrade

    ...
    0 ★ 0 ↺

    [?]matoken:susie: » 🌐
    @matoken@snac.matoken.org

    再現
    $ cd `mktemp -d`
    $ rm -rf `pwd`
    $ ls -a
    $ sudo apt install hello

    sh: 0: getcwd() failed: No such file or directory
    Installing:
    hello

    sh: 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
    :

    apt purge とか apt autoclean でも起きる

      ...
      0 ★ 0 ↺

      [?]matoken:susie: » 🌐
      @matoken@snac.matoken.org

      dpkg-preconfigure, dpkg では修正済ぽい?

      - 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
      - "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

        History