Linux-Mint
完全解除安裝wine
我需要執行
sudo apt-get update
並curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
安裝 Node.js。但是,我收到以下錯誤:E: The repository 'https://dl.winehq.org/wine-builds/mint bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
為了解決這個問題,我決定完全解除安裝 wine,因為我不需要 wine。我按照這個執行緒上的步驟進行操作。
對於第一部分:
cd $HOME rm -r .wine rm .config/menus/applications-merged/wine* rm -r .local/share/applications/wine rm .local/share/desktop-directories/wine* rm .local/share/icons/????_*.xpm
我收到
rm: cannot remove '<path>': No such file or directory
所有rm
命令的此錯誤。對於第二部分:
輸入:
sudo apt-get remove --purge wine
輸出:
Virtual packages like 'wine' can't be removed
對於第三部分:
sudo apt-get update -> E: The repository 'https://dl.winehq.org/wine-builds/mint bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. sudo apt-get autoclean -> Reading package lists... Done Building dependency tree Reading state information... Done sudo apt-get clean sudo apt-get autoremove -> Reading package lists... Done Building dependency tree Reading state information... Done 0 to upgrade, 0 to newly install, 0 to remove and 637 not to upgrade.
正如上面觀察到的,執行
sudo apt-get update
輸出與以前相同的錯誤。經過一些研究後,我按順序執行了這些命令:
輸入:
dpkg -l "*wine*" | grep ii
輸出:
ii libwine:amd64 3.0-1ubuntu1 amd64 Windows API implementation - library ii wine64 3.0-1ubuntu1 amd64 Windows API implementation - 64-bit binary loader
輸入:
sudo apt remove libwine:amd64
輸出:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: libwine wine64 0 to upgrade, 0 to newly install, 2 to remove and 637 not to upgrade. After this operation, 193 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 266834 files and directories currently installed.) Removing wine64 (3.0-1ubuntu1) ... Removing libwine:amd64 (3.0-1ubuntu1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
輸入:
dpkg -l "*wine*" | grep ii
輸出:
dpkg-query: no packages found matching *wine*
我想擺脫酒,這樣我就可以安裝 nodejs 並且不會收到有關發布文件的錯誤。我正在使用 Linux Mint 19.2 蒂娜。
您已刪除 Wine,但要修復
apt update
錯誤,您需要刪除 Wine 儲存庫。尋找他們的定義grep -ri wine /etc/apt
然後編輯相應的文件以刪除(或註釋,帶有介紹性
#
)相關deb
行。