Ubuntu

umake 無法在 Ubuntu 20.10 上安裝帶有 python 相關錯誤的idea-ultimate

  • March 5, 2021

問題

我收到此錯誤sudo apt install ubuntu-make(安裝成功,但這樣做時會引發此錯誤)

/usr/lib/python3/dist-packages/umake/frameworks/ide.py:99: SyntaxWarning: "is" with a literal. Did you mean "=="?

然後,當嘗試安裝例如idea-ultimate時,我得到了這個:

/usr/lib/python3/dist-packages/umake/tools.py:92: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
 self._config = yaml.load(f)

當安裝即將完成時:

ERROR: Unhandled exception                #                                    |
Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/umake/tools.py", line 158, in wrapper
   function(*args, **kwargs)
 File "/usr/lib/python3/dist-packages/umake/frameworks/baseinstaller.py", line 457, in decompress_and_install_done
   add_exec_link(self.exec_path, self.exec_link_name)
 File "/usr/lib/python3/dist-packages/umake/tools.py", line 343, in add_exec_link
   add_env_to_user("Ubuntu Make binary symlink", {"PATH": {"value": bin_folder}})
 File "/usr/lib/python3/dist-packages/umake/tools.py", line 439, in add_env_to_user
   remove_framework_envs_from_user(framework_tag)
 File "/usr/lib/python3/dist-packages/umake/tools.py", line 423, in remove_framework_envs_from_user
   with open(profile_filepath + ".new", "w", encoding='utf-8') as f:
PermissionError: [Errno 13] Permission denied: '/home/jasper/.profile.new'

可能的問題:

  • 我最近通過更改了我的使用者名和主目錄usermod。(之所以提到這一點,是因為 umake 提示我在我的舊home/jasper-ubuntu目錄中安裝 idea-ultimate(現在是home/jasper
  • Python 安裝不正確。(之所以提到這是因為今天早些時候,我安裝然後解除安裝(通過rm -rf /home/jasper/anaconda3)Anaconda3。(python -V返回Python 3.8.6,並python2 -V返回Python 2.7.18

故障排除

我已經嘗試過基本的故障排除,比如刪除 umake 和重新安裝,但我根本不想接觸 python,因為我很有可能會搞砸。

提前致謝。

我建議使用JetBrains Toolbox進行安裝。這也將確保您有一種簡單的方法來更新或解除安裝 IDE。

  1. 使用上面的連結下載。
  2. 轉到工具選項卡並選擇 IntelliJ IDEA Ultimate

如果失敗,請讓我知道作為評論。

引用自:https://unix.stackexchange.com/questions/637791