我可以从 Ubuntu 18.04 中删除 Python2 吗

我可以从 Ubuntu 18.04 中删除 Python2 吗

我正在使用 WSL2 Ubuntu 18.04,我觉得 python2 总是困扰着我。此外,python2 支持已于今年正式结束。我想删除 python2,所以我在这个交流中看到了一篇帖子,上面说你可以使用此命令检查哪些依赖于 Python2

$ apt remove python --simulate

我从来没有用过这个命令,所以我想问一下它想表达什么

> apt remove python --simulate                                                                        ~@DESKTOP-UU4FRL9
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpython-stdlib python-minimal python2.7 python2.7-minimal
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  python
0 upgraded, 0 newly installed, 1 to remove and 165 not upgraded.
Remv python [2.7.15~rc1-1]

我理解的一件事是以下包将被删除libpython-stdlib python-minimal python2.7 python2.7-minimal

但我不明白的是165 未升级。这是否意味着这 165 个包依赖于 python2?如果是,这些包是什么?我该如何列出它们?

相关内容