2024-03-18 11:19AM
1.先查找 wine
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ dpkg -l | grep wine
ii wine-stable 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable-amd64 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine-stable-i386:i386 9.0.0.0~jammy-1 i386 WINE Is Not An Emulator - runs MS Windows programs
ii winehq-stable 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
2. 删除 wine
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ sudo apt remove winehq-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
gstreamer1.0-plugins-base:i386 libapparmor1:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386 libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 libdbus-1-3:i386 libdecor-0-0:i386
libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 libdrm2:i386 libdw1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libexpat1:i386 libffi8:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386
libfribidi0:i386 libgbm1:i386 libgd3:i386 libgdbm-compat4:i386 libgdbm6:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libgnutls30:i386 libgphoto2-6:i386
libgphoto2-port12:i386 libgraphite2-3:i386 libgsm1:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libicu70:i386 libieee1284-3:i386
libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0:i386 libllvm15:i386 libltdl7:i386 libmd0:i386 libnettle8:i386 libnghttp2-14:i386 libnspr4:i386
libnss3:i386 libodbc1 libodbc1:i386 libodbc2 libodbc2:i386 libodbccr2 libodbccr2:i386 libogg0:i386 libopengl0:i386 libopenjp2-7:i386 libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386
libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcap0.8:i386 libpci3:i386 libperl5.34:i386 libpixman-1-0:i386 libpng16-16:i386 libpoppler-glib8:i386
libpoppler118:i386 libpsl5:i386 libpulse0:i386 librtmp1:i386 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0:i386 libsensors5:i386
libsndfile1:i386 libsnmp40:i386 libsqlite3-0:i386 libssh-4:i386 libtasn1-6:i386 libthai0:i386 libtheora0:i386 libtiff5:i386 libunwind8:i386 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386
libvisual-0.4-0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwayland-server0:i386 libwebp7:i386 libwrap0:i386 libx11-6:i386
libx11-xcb1:i386 libxau6:i386 libxcb-randr0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386
libxinerama1:i386 libxkbcommon0:i386 libxkbregistry0:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386 ocl-icd-libopencl1:i386
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable
0 upgraded, 0 newly installed, 4 to remove and 42 not upgraded.
After this operation, 1,366 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 342019 files and directories currently installed.)
Removing winehq-stable (9.0.0.0~jammy-1) ...
Removing wine-stable (9.0.0.0~jammy-1) ...
Removing wine-stable-amd64 (9.0.0.0~jammy-1) ...
Removing wine-stable-i386:i386 (9.0.0.0~jammy-1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
sh: 0: getcwd() failed: No such file or directory
3. 查看剩余没有删除的 wine
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ dpkg -l | grep wine
rc wine-stable 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
rc wine-stable-amd64 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
rc wine-stable-i386:i386 9.0.0.0~jammy-1 i386 WINE Is Not An Emulator - runs MS Windows programs
4. 继续删除
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ sudo apt remove wine-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'wine-stable' is not installed, so not removed
The following packages were automatically installed and are no longer required:
gstreamer1.0-plugins-base:i386 libapparmor1:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386 libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 libdbus-1-3:i386 libdecor-0-0:i386
libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 libdrm2:i386 libdw1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libexpat1:i386 libffi8:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386
libfribidi0:i386 libgbm1:i386 libgd3:i386 libgdbm-compat4:i386 libgdbm6:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libgnutls30:i386 libgphoto2-6:i386
libgphoto2-port12:i386 libgraphite2-3:i386 libgsm1:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libicu70:i386 libieee1284-3:i386
libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0:i386 libllvm15:i386 libltdl7:i386 libmd0:i386 libnettle8:i386 libnghttp2-14:i386 libnspr4:i386
libnss3:i386 libodbc1 libodbc1:i386 libodbc2 libodbc2:i386 libodbccr2 libodbccr2:i386 libogg0:i386 libopengl0:i386 libopenjp2-7:i386 libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386
libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcap0.8:i386 libpci3:i386 libperl5.34:i386 libpixman-1-0:i386 libpng16-16:i386 libpoppler-glib8:i386
libpoppler118:i386 libpsl5:i386 libpulse0:i386 librtmp1:i386 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0:i386 libsensors5:i386
libsndfile1:i386 libsnmp40:i386 libsqlite3-0:i386 libssh-4:i386 libtasn1-6:i386 libthai0:i386 libtheora0:i386 libtiff5:i386 libunwind8:i386 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386
libvisual-0.4-0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwayland-server0:i386 libwebp7:i386 libwrap0:i386 libx11-6:i386
libx11-xcb1:i386 libxau6:i386 libxcb-randr0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386
libxinerama1:i386 libxkbcommon0:i386 libxkbregistry0:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386 ocl-icd-libopencl1:i386
Use 'sudo apt autoremove' to remove them.
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
会发现没有删掉,并且要使用 sudo apt autoremove 来进行删除
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ sudo apt autoremove wine-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'wine-stable' is not installed, so not removed
sh: 0: getcwd() failed: No such file or directory
The following packages will be REMOVED:
gstreamer1.0-plugins-base:i386 libapparmor1:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libatomic1:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386
libbrotli1:i386 libbsd0:i386 libcairo2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386 libcurl3-gnutls:i386 libcurl4:i386 libdatrie1:i386 libdbus-1-3:i386 libdecor-0-0:i386
libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 libdrm2:i386 libdw1:i386 libedit2:i386 libelf1:i386 libexif12:i386 libexpat1:i386 libffi8:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386
libfribidi0:i386 libgbm1:i386 libgd3:i386 libgdbm-compat4:i386 libgdbm6:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libgnutls30:i386 libgphoto2-6:i386
libgphoto2-port12:i386 libgraphite2-3:i386 libgsm1:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libharfbuzz0b:i386 libhogweed6:i386 libicu70:i386 libieee1284-3:i386
libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 liblcms2-2:i386 libldap-2.5-0:i386 libllvm15:i386 libltdl7:i386 libmd0:i386 libnettle8:i386 libnghttp2-14:i386 libnspr4:i386
libnss3:i386 libodbc1 libodbc1:i386 libodbc2 libodbc2:i386 libodbccr2 libodbccr2:i386 libogg0:i386 libopengl0:i386 libopenjp2-7:i386 libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386
libp11-kit0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcap0.8:i386 libpci3:i386 libperl5.34:i386 libpixman-1-0:i386 libpng16-16:i386 libpoppler-glib8:i386
libpoppler118:i386 libpsl5:i386 libpulse0:i386 librtmp1:i386 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules:i386 libsasl2-modules-db:i386 libsdl2-2.0-0:i386 libsensors5:i386
libsndfile1:i386 libsnmp40:i386 libsqlite3-0:i386 libssh-4:i386 libtasn1-6:i386 libthai0:i386 libtheora0:i386 libtiff5:i386 libunwind8:i386 libusb-1.0-0:i386 libv4l-0:i386 libv4lconvert0:i386
libvisual-0.4-0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1:i386 libwayland-server0:i386 libwebp7:i386 libwrap0:i386 libx11-6:i386
libx11-xcb1:i386 libxau6:i386 libxcb-randr0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386
libxinerama1:i386 libxkbcommon0:i386 libxkbregistry0:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxss1:i386 libxxf86vm1:i386 ocl-icd-libopencl1:i386
sh: 0: getcwd() failed: No such file or directory
0 upgraded, 0 newly installed, 145 to remove and 40 not upgraded.
sh: 0: getcwd() failed: No such file or directory
After this operation, 306 MB disk space will be freed.
Do you want to continue? [Y/n] Y
sh: 0: getcwd() failed: No such file or directory
(Reading database ... 339217 files and directories currently installed.)
Removing gstreamer1.0-plugins-base:i386 (1.20.1-1ubuntu0.1) ...
Removing libsdl2-2.0-0:i386 (2.0.20+dfsg-2ubuntu1.22.04.1) ...
Removing libasound2-plugins:i386 (1.2.6-1) ...
Removing libpulse0:i386 (1:15.99.1+dfsg1-1ubuntu2.1) ...
……
Removing libwayland-server0:i386 (1.20.0-1ubuntu0.1) ...
Removing libwayland-cursor0:i386 (1.20.0-1ubuntu0.1) ...
Removing libwayland-client0:i386 (1.20.0-1ubuntu0.1) ...
Removing libsndfile1:i386 (1.0.31-2ubuntu0.1) ...
Removing libflac8:i386 (1.3.3-2ubuntu0.2) ...
Removing libfribidi0:i386 (1.0.8-2ubuntu3.1) ...
Removing libsnmp40:i386 (5.9.1+dfsg-1ubuntu2.6) ...
Removing libperl5.34:i386 (5.34.0-3ubuntu1.3) ...
Removing libgdbm-compat4:i386 (1.23-1) ...
Removing libgdbm6:i386 (1.23-1) ...
Removing libglapi-mesa:i386 (23.2.1-1ubuntu3.1~22.04.2) ...
Removing libharfbuzz0b:i386 (2.7.4-1ubuntu3.1) ...
Removing libglib2.0-0:i386 (2.72.4-0ubuntu2.2) ...
Removing libglu1-mesa:i386 (9.0.2-1) ...
Removing libopengl0:i386 (1.4.0-1) ...
Removing libglvnd0:i386 (1.4.0-1) ...
Removing libldap-2.5-0:i386 (2.5.16+dfsg-0ubuntu0.22.04.2) ...
Removing librtmp1:i386 (2.4+20151223.gitfa8646d.1-2build4) ...
Removing libgnutls30:i386 (3.7.3-4ubuntu1.4) ...
Removing libgphoto2-port12:i386 (2.5.27-1build2) ...
Removing libgraphite2-3:i386 (1.3.14-1build2) ...
Removing libgsm1:i386 (1.0.19-1) ...
Removing libhogweed6:i386 (3.7.3-1build2) ...
Removing libxslt1.1:i386 (1.1.34-4ubuntu0.22.04.1) ...
Removing libxkbregistry0:i386 (1.4.0-1) ...
Removing libxml2:i386 (2.9.13+dfsg-1ubuntu0.4) ...
Removing libicu70:i386 (70.1-2) ...
Removing libieee1284-3:i386 (0.2.11-14build2) ...
Removing libjack-jackd2-0:i386 (1.9.20~dfsg-1) ...
Removing libjbig0:i386 (2.1-3.1ubuntu0.22.04.1) ...
Removing libv4l-0:i386 (1.22.1-2build1) ...
Removing libv4lconvert0:i386 (1.22.1-2build1) ...
Removing libjpeg8:i386 (8c-2ubuntu10) ...
Removing libjpeg-turbo8:i386 (2.1.2-0ubuntu1) ...
Removing liblcms2-2:i386 (2.12~rc1-2build2) ...
Removing libodbc1:i386 (2.3.9-5) ...
Removing libxcb1:i386 (1.14-3ubuntu3) ...
Removing libxdmcp6:i386 (1:1.1.3-0ubuntu5) ...
Removing libbsd0:i386 (0.11.5-1) ...
Removing libmd0:i386 (1.0.4-1build1) ...
Removing libxau6:i386 (1:1.0.9-1build5) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
sh: 0: getcwd() failed: No such file or directory
使用了 sudo apt autoremove 命令来进行删除之后,会发现还是没有删除掉
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ dpkg -l | grep wine
rc wine-stable 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
rc wine-stable-amd64 9.0.0.0~jammy-1 amd64 WINE Is Not An Emulator - runs MS Windows programs
rc wine-stable-i386:i386 9.0.0.0~jammy-1 i386 WINE Is Not An Emulator - runs MS Windows programs
5. 然后可以使用这个命令:sudo dpkg --purge 来进行删除
sudo dpkg --purge wine-stable wine-stable-amd64 wine-stable-i386:i386
然后就发现已经删掉了
meiyi@meiyi-Extensa-2511G:/opt/wine-stable$ dpkg -l | grep wine
登录
请登录后再发表评论。
评论列表:
目前还没有人发表评论