Ubuntu
發布升級後 apt 建議刪除 python2.7 和 3.6
在經歷了
update
,upgrade
,dist-upgrade
,dist-release-upgrade
, 很多安裝失敗的問題之後,我設法修復了這些問題(顯然)並且到目前為止升級進展順利。現在它已更新,重新啟動,但仍然有任何
apt
命令建議我刪除“未使用”的包,例如 python2.7 和其他包:bcrelay cmake-data default-libmysqlclient-dev ebtables gconf-service gconf-service-backend gconf2 gconf2-common gtk2-engines-pixbuf gtk2-engines-xfce guile-2.0-libs imagemagick-common landscape-common libargon2-0 libart-2.0-2 libasprintf0v5 libavahi-glib1 libbind9-140 libbind9-160 libblas-common libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common libboost-filesystem1.58.0 libboost-filesystem1.65.1 libboost-filesystem1.71.0 libboost-system1.58.0 libboost-system1.65.1 libcapnp-0.5.3 libcapnp-0.6.1 libcapnp-0.7.0 libcroco3 libcupsfilters1 libcupsimage2 libdns-export1100 libdns1100 libdns162 libegl1-mesa libevent-2.1-6 libfftw3-single3 libgconf-2-4 libgcr-3-common libgdbm3 libgdbm5 libgfortran3 libgfortran4 libglade2-0 libgnome-2-0 libgnome-keyring-common libgnome-keyring0 libgnome2-0 libgnome2-bin libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libhdf5-10 libical1a libical3 libicu60 libilmbase12 libip4tc0 libip6tc0 libiptc0 libirs160 libisc-export169 libisc160 libisc169 libisccc140 libisccc160 libisccfg140 libisccfg160 libisl19 libjpeg-progs libjpeg9 libjs-async libjson-c3 libjsoncpp1 libjte1 libkeybinder0 libllvm10 libllvm3.8 libllvm5.0 liblwres141 liblwres160 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libmirclient9 libmircommon7 libmircore1 libmirprotobuf3 libmysqlclient-dev libntfs-3g88 libopenexr22 liborbit-2-0 libperl5.26 libplymouth4 libpococrypto50 libpocodata50 libpocodatamysql50 libpocodataodbc50 libpocodatasqlite50 libpocofoundation50 libpocojson50 libpocomongodb50 libpoconet50 libpoconetssl50 libpocoredis50 libpocoutil50 libpocoxml50 libpocozip50 libpoppler58 libpoppler73 libprocps6 libprotobuf-lite10 libprotobuf-lite17 libprotobuf-lite9v5 libpython-all-dev libpython2-dev libpython2.7-dev libpython3.5-dev libpython3.6 libpython3.6-dev libpython3.6-minimal libpython3.6-stdlib libqrencode3 libreadline7 librhash0 libsane1 libsqlite3-dev libssl1.0.2 libthunarx-2-0 libtxc-dxtn-s2tc0 libusbmuxd4 libvte-common libvte9 libwayland-egl1-mesa libwebp5 libwebpmux1 libwebrtc-audio-processing-0 libwnck-common libwnck22 libxfconf-0-2 libxfont1 linux-headers-4.4.0-193 linux-headers-4.4.0-193-generic linux-headers-4.4.0-209 linux-headers-4.4.0-209-generic linux-image-4.4.0-193-generic linux-image-4.4.0-209-generic linux-modules-4.4.0-193-generic linux-modules-4.4.0-209-generic linux-modules-extra-4.4.0-193-generic linux-modules-extra-4.4.0-209-generic mongodb-org-tools nplan orage orage-data python-all python-asn1crypto python-idna python2.7-dev python3-appdirs python3-asn1crypto python3-automat python3-click python3-colorama python3-configobj python3-constantly python3-distlib python3-filelock python3-hamcrest python3-hyperlink python3-incremental python3-pam python3-pyasn1 python3-pyasn1-modules python3-serial python3-service-identity python3-twisted python3-twisted-bin python3-virtualenv python3-xdg python3-zope.interface python3.5-dev python3.6 python3.6-dev python3.6-minimal python3.6-venv ttf-dejavu-core virtualenv xdelta3 xfce4-artwork xfce4-mount-plugin xfce4-volumed xscreensaver-data xubuntu-icon-theme
在刪除 Python2.7 後,我聽說過損壞的系統。
但是,當我執行“python3”時,它會打開 Python 3.8.10 CLI。
autoremove
上述包裹安全嗎?我執行 Ubuntu Server 20.04.3 LTS。
在 Ubuntu 20.04 上,python2.7 已移至
universe
儲存庫。該系統使用 python3.8 版本(請參閱python3 -V
),因此您可以安全地刪除它。