Python3.7をインストールしようとした後、すべてのLinuxコマンドは機能しません。

Python3.7をインストールしようとした後、すべてのLinuxコマンドは機能しません。

大きくて奇妙な問題があります。 HetznerにUbuntu 20を使用するサーバーがあります。

次のガイドラインに従ってpython3.7.2をインストールしてみました。

wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz 
Where version can be specific, the above FTP location contains lots of versions.
tar -xvf Python-<version>.tgz 
cd Python-<version>  
./configure 
make 
sudo checkinstall 

「make」コマンドの前にはすべて問題ありませんが、「sudo checkinstall」以降はエラーが発生します。

File "/home/Python-3.7.2/Lib/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
make: *** [Makefile:1130: install] Error 1

****  Installation failed. Aborting package creation.

Restoring overwritten files from backup.../usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory


/usr/bin/checkinstall: line 102: /usr/bin/gettext: No such file or directory
/usr/bin/checkinstall: line 319: /usr/bin/rm: No such file or directory
/usr/bin/checkinstall: line 320: /usr/bin/rm: No such file or directory
/usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory


/usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory

この時点で、ls、ps、pythonなどのすべてのLinuxコマンドは機能しません。

-bash: /usr/bin/su: No such file or directory
-bash: /usr/bin/ls: No such file or directory
-bash: /usr/bin/ps: No such file or directory

サーバーを手動で再起動しましたが、機能しません。今何が起こっているのか知っている人はいますか? 「make」と「checkinstall」コマンドを使用したことがなく、今は停止しました。

ベストアンサー1

おすすめ記事