我的系统是 Ubuntu-Mate 20.04,我通过 snap 安装了一些应用程序。现在我决定从系统中删除 snap,但我遇到了依赖问题。如果尝试删除gir1.2-snapd-1
Synaptic,请告知我也会删除:
apturl
gnome-software
software-properties-gtk
ubuntu-mate-core
ubuntu-mate-desktop
ubuntu-release-upgrader-gtk
update-manager
update-notifier
我担心的是删除 ubuntu-mate-core 和 ubuntu-mate-desktop 是否会导致我的系统崩溃?
答案1
存在一定风险,具体取决于您的系统是如何构建的。但您可以降低该风险。
建议:不要删除gir1.2-snapd-1
deb 包,原因有三:
1) 保留它不会造成任何损害。如果没有安装 snapd,此包可能会产生一些应用程序错误,因为如果没有安装 snapd,内省函数实际上并不存在。如果这让您感到困扰,请直接删除 deb 包gir1.2-snapd-1
。
2)删除依赖的软件包将降低您使用桌面功能控制包管理器的能力:
gnome-software
software-properties-gtk
ubuntu-release-upgrader-gtk
update-manager
update-notifier
当然,如果你不使用任何这些功能,那么请直接删除gir1.2-snapd-1
deb 包。你的系统。
3)删除依赖项ubuntu-mate-core
可能ubuntu-mate-desktop
会使其他桌面包有资格自动删除。
这部分可能会破坏你的系统. 在同意任何未来删除或自动删除。这主要对于那些从最小 .iso 构建系统或使用 apt 安装桌面环境的人来说是一种风险。如果您的桌面确实消失了,只需再次 apt 安装这些元包即可。
直接使用桌面安装 .iso 安装桌面的用户不会面临风险;桌面软件包单独进行了 apt 标记,以防止出现此类错误。请直接删除gir1.2-snapd-1
deb 软件包。
答案2
我不建议删除这些应用程序,因为:
software-properties-gtk
从系统中删除将删除软件和更新应用程序,该应用程序对于存储库和更新管理很友好。删除
ubuntu-release-upgrader-gtk
,update-manager
将update-notifier
导致缺乏美观的更新/升级管理器应用程序。
如果没有上面列出的软件包,您的系统的软件包管理将变成类似服务器的操作系统,只带有基于终端的工具,如apt
、apt-get
、aptitude
、add-apt-repository
、do-release-upgrade
。因此,这样的系统会失去可用性和用户友好性。
删除gnome-software
是好的,因为它是非常缓慢和愚蠢的应用程序。
但删除ubuntu-mate-core
和ubuntu-mate-desktop
不会破坏系统。它们是元包。
您可以通过 来结束 Snapd 本身的删除sudo apt-get purge snapd
。
我个人也不喜欢 Snap,但在一些案例它们很有用。例如,可以在 Ubuntu 16.04 LTS 等旧系统上安装新版本的软件包。还可以安装一些存储库中未提供的专有内容(例如视频会议应用程序)。
您可以直接将这些软件包留在系统中。删除这些软件包不会释放大量空间。
答案3
我删除libsnappy1v5:i386
了一些 Wine 应用程序并重新安装它们。现在尝试删除libsnappy1v5
apt 显示:
The following packages were automatically installed and are no longer required: audacity-data breeze-icon-theme ca-certificates-java calf-plugins catdoc dvdauthor fonts-dejavu-extra fonts-wine frei0r-plugins fuseiso gimp-data gir1.2-gst-plugins-bad-1.0 gstreamer1.0-adapter-pulseeffects gstreamer1.0-autogain-pulseeffects gstreamer1.0-convolver-pulseeffects gstreamer1.0-crystalizer-pulseeffects java-common kaccounts-providers kactivities-bin kactivitymanagerd kde-cli-tools kde-cli-tools-data kdeconnect kded5 kdenlive-data keditbookmarks kinit kio kpackagelauncherqml kpackagetool5 kpeople-vcard libaacs0 libaccounts-qt5-1 libamd2 libaom0 libaribb24-0 libass9 libbabl-0.1-0 libbasicusageenvironment1 libbdplus0 libbluray2 libbs2b0 libc-ares2 libcamd2 libcapi20-3 libccolamd2 libcddb2 libcholmod3 libcodec2-0.9 libdc1394-22 libdc1394-25 libdc1394-utils libdca0 libde265-0 libdirectfb-1.7-7 libdvbpsi10 libebml4v5 libebur128-1 libenca0 libepub0 libfaad2 libflac++6v5 libflite1 libfluidsynth2 libgavl1 libgegl-common libgme0 libgroupsock8 libgsm1 libgupnp-igd-1.0-4 libheif1 libhfstospell10 libid3tag0 libinstpatch-1.0-2 libixml10 libjsoncpp1 libkaccounts1 libkate1 libkf5activities5 libkf5archive5 libkf5attica5 libkf5auth5 libkf5bluezqt-data libkf5bluezqt6 libkf5bookmarks-data libkf5bookmarks5 libkf5calendarevents5 libkf5completion-data libkf5completion5 libkf5contacts-data libkf5contacts5 libkf5declarative-data libkf5declarative5 libkf5doctools5 libkf5filemetadata-data libkf5filemetadata3 libkf5globalaccel-bin libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5 libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5 libkf5itemviews-data libkf5itemviews5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5 libkf5kiocore5 libkf5kiofilewidgets5 libkf5kiogui5 libkf5kiontlm5 libkf5kiowidgets5 libkf5kirigami2-5 libkf5newstuff-data libkf5newstuff5 libkf5newstuffcore5 libkf5notifyconfig-data libkf5package-data libkf5package5 libkf5parts-data libkf5parts-plugins libkf5parts5 libkf5people-data libkf5people5 libkf5peoplebackend5 libkf5peoplewidgets5 libkf5plasma5 libkf5plasmaquick5 libkf5pty-data libkf5pty5 libkf5pulseaudioqt2 libkf5purpose-bin libkf5purpose5 libkf5quickaddons5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5 libkf5su-bin libkf5su-data libkf5su5 libkf5textwidgets-data libkf5textwidgets5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 libkworkspace5-5 liblilv-0-0 liblirc-client0 liblivemedia77 libmad0 libmatroska6v5 libmetis5 libminizip1 libmjpegutils-2.1-0 libmlt-data libmng2 libmodplug1 libmovit8 libmpcdec6 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libmypaint-1.5-1 libmypaint-common libmysofa1 libnice10 libnode64 libnorm1 libodbc1 libofa0 libopenal-data libopenal1 libopenmpt-modplug1 libopenmpt0 libopenshot-audio6 libpgm-5.2-0 libphonon4qt5-4 libphonon4qt5-data libplacebo7 libpoppler-qt5-1 libportaudio2 libportsmf0v5 libpostproc55 libprotobuf-lite17 libproxy-tools libqca-qt5-2 libqca-qt5-2-plugins libqt5multimedia5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libqt5quickwidgets5 libqt5webengine-data libre2-5 libresid-builder0c2a librtaudio6 librttr-core0.9.6 librubberband2 libsbc1 libsdl-image1.2 libsdl1.2debian libserd-0-0 libshine3 libsidplay2 libsignon-plugins-common1 libsignon-qt5-1 libsndio7.0 libsord-0-0 libsoundtouch1 libsox-fmt-alsa libsox-fmt-base libsox3 libspandsp2 libspatialaudio0 libsratom-0-0 libsrt1 libsrtp2-1 libssh-gcrypt-4 libssh2-1 libstb0 libsuil-0-0 libswresample3 libswscale5 libumfpack5 libupnp13 libusageenvironment3 libusrsctp1 libvamp-hostsdk3v5 libvidstab1.1 libvkd3d1 libvlc-bin libvlc5 libvlccore9 libvo-aacenc0 libvo-amrwbenc0 libvoikko1 libvorbisidec1 libwildmidi2 libx265-179 libxcb-composite0 libxcb-damage0 libxvidcore4 libzbar0 libzita-convolver3 libzmq5 libzvbi-common libzvbi0 mda-lv2 media-player-info nodejs nodejs-doc openjdk-11-jre-headless oxygen-icon-theme phantomjs plasma-framework python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-pyxattr python3-zmq qml-module-org-kde-bluezqt qml-module-org-kde-kconfig qml-module-org-kde-kirigami2 qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons qml-module-org-kde-newstuff qml-module-org-kde-people qml-module-org-kde-purpose qml-module-qt-labs-platform qml-module-qtgraphicaleffects qml-module-qtqml-models2 qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtquick2 qml-module-qtwebchannel qml-module-ubuntu-onlineaccounts rtmpdump rubberband-ladspa signon-plugin-oauth2 sonnet-plugins sshfs swh-plugins timgm6mb-soundfont vlc-bin vlc-data vlc-l10n vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-splitter vlc-plugin-visualization xsane-common youtube-dl zam-plugins Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: audacity browser-plugin-freshplayer-pepperflash celluloid dvgrab ffmpeg ffmpegthumbnailer frostwire gimp gstreamer1.0-libav gstreamer1.0-plugins-bad kdenlive libasound2-plugins-extra libavcodec-extra libavcodec-extra58 libavdevice58 libavfilter7 libavformat58 libchromaprint1 libfaudio0 libffmpegthumbnailer4v5 libgegl-0.4-0 libgimp2.0 libkf5filemetadata-bin libkf5notifyconfig5 libmlt++3 libmlt6 libmpv1 libopenshot16 libqt5webengine5 libqt5webenginecore5 libquicktime2 libsnappy1v5 libwine melt mplayer mpv openshot openshot-qt peek phonon4qt5 phonon4qt5-backend-vlc pulseeffects python3-openshot qml-module-qtwebengine stremio vlc vlc-plugin-base vlc-plugin-video-output vokoscreen wine wine-devel-amd64 wine-stable wine64 winetricks xsane 0 upgraded, 0 newly installed, 55 to remove and 0 not upgraded. After this operation, 1075 MB disk space will be freed. Do you want to continue? [Y/n]
还将 libsnapd-glib1
删除:
The following packages were automatically installed and are no longer required: accountsservice-ubuntu-schemas apturl-common calf-plugins gir1.2-goa-1.0 gir1.2-gst-plugins-bad-1.0 gnome-software-common gstreamer1.0-adapter-pulseeffects gstreamer1.0-autogain-pulseeffects gstreamer1.0-convolver-pulseeffects gstreamer1.0-crystalizer-pulseeffects libappstream-glib8 libzita-convolver3 mda-lv2 pavucontrol-qt-l10n rtkit rubberband-ladspa zam-plugins Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: apturl audio-recorder gir1.2-snapd-1 gnome-software indicator-sound libcanberra-pulse libsnapd-glib1 paprefs pavucontrol-qt pulseaudio pulseaudio-equalizer pulseaudio-module-gsettings pulseaudio-module-zeroconf pulseeffects software-properties-gtk ubuntu-mate-core ubuntu-mate-desktop ubuntu-release-upgrader-gtk update-manager update-notifier 0 upgraded, 0 newly installed, 20 to remove and 1 not upgraded. After this operation, 21,7 MB disk space will be freed. Do you want to continue? [Y/n]
最后gir1.2-snapd-1
不想:
The following packages were automatically installed and are no longer required: apturl-common gir1.2-goa-1.0 gnome-software-common libappstream-glib8 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: apturl gir1.2-snapd-1 gnome-software software-properties-gtk ubuntu-mate-core ubuntu-mate-desktop ubuntu-release-upgrader-gtk update-manager update-notifier 0 upgraded, 0 newly installed, 9 to remove and 1 not upgraded. After this operation, 9013 kB disk space will be freed. Do you want to continue? [Y/n]
我喜欢它!