Arch-Linux

無法在 Arch Linux 上升級縮放

  • May 3, 2020

我的Arch盒子上安裝了縮放。當我啟動它時,它會向我顯示一個底部狀態的視窗Version: 3.5.374815.0324。問題是,我不記得我是如何安裝這個原始版本的。我試過sudo pacman -R zoomwhich給我error: target not found: zoom,和yay -R zoom. 它也沒有出現 inder zoom -Q

我從https://support.zoom.us/hc/en-us/articles/204206269-Installing-or-updating-Zoom-on-Linux#h_c0913442-0832-428d-aa15-b004b80cfafe下載了最新版本並嘗試安裝它,sudo pacman -U zoom_x86_64.pkg.tar.xz而它首先說:

loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) zoom-5.0.399860.0429-1

Total Installed Size:  150.29 MiB

:: Proceed with installation? [Y/n] 

,在與Y我確認後得到:

...
zoom: /opt/zoom/zoom.sh exists in filesystem
zoom: /opt/zoom/zoomlinux exists in filesystem
zoom: /opt/zoom/zopen exists in filesystem
zoom: /usr/bin/zoom exists in filesystem
zoom: /usr/share/applications/Zoom.desktop exists in filesystem
zoom: /usr/share/mime/packages/zoom.xml exists in filesystem
zoom: /usr/share/pixmaps/Zoom.png exists in filesystem
zoom: /usr/share/pixmaps/application-x-zoom.png exists in filesystem
Errors occurred, no packages were upgraded.

我是否可以將這些文件覆蓋併zoom升級到較新的版本?

更新

我移動/opt/zoom/ to /opt/zoom~/並重試但得到:

$ sudo pacman -U zoom_x86_64.pkg.tar.xz 
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) zoom-5.0.399860.0429-1

Total Installed Size:  150.29 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                    [##########################################################################################] 100%
(1/1) checking package integrity                                                                                                                  [##########################################################################################] 100%
(1/1) loading package files                                                                                                                       [##########################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                 [##########################################################################################] 100%
error: failed to commit transaction (conflicting files)
zoom: /usr/bin/zoom exists in filesystem
zoom: /usr/share/applications/Zoom.desktop exists in filesystem
zoom: /usr/share/mime/packages/zoom.xml exists in filesystem
zoom: /usr/share/pixmaps/Zoom.png exists in filesystem
zoom: /usr/share/pixmaps/application-x-zoom.png exists in filesystem
Errors occurred, no packages were upgraded.

我在上面移動了每個文件,如下所示:

$ sudo mv /usr/bin/zoom /usr/bin/zoom~
$ sudo mv /usr/share/applications/Zoom.desktop /usr/share/applications/Zoom.desktop~
$ sudo mv /usr/share/mime/packages/zoom.xml /usr/share/mime/packages/zoom.xml~
$ sudo mv /usr/share/pixmaps/Zoom.png /usr/share/pixmaps/Zoom.png~
$ sudo mv /usr/share/pixmaps/application-x-zoom.png /usr/share/pixmaps/application-x-zoom.png~
$ sudo pacman -U zoom_x86_64.pkg.tar.xz 

然後我重新安裝它似乎完成了:

...
:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                    [##########################################################################################] 100%
(1/1) checking package integrity                                                                                                                  [##########################################################################################] 100%
(1/1) loading package files                                                                                                                       [##########################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                 [##########################################################################################] 100%
(1/1) checking available disk space                                                                                                               [##########################################################################################] 100%
:: Processing package changes...
(1/1) installing zoom                                                                                                                             [##########################################################################################] 100%
run post install script, action is 5.0.399860.0429-1...
Error in file "/usr/share/applications/org.kde.kdeconnect_open.desktop": "*/*" is an invalid MIME type ("*" is an unregistered media type)
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating the desktop file MIME type cache...
(3/3) Updating the MIME type database...

但是當我隨後啟動縮放時,我仍然看到一個對話框,上面寫著版本:3.5.374815.0324

所以它實際上並沒有升級……

或者該軟體包實際上並不包含較新的版本….

好的,我刪除了之前重命名的目錄和文件,然後安裝了 zoomyay -S zoom版本5.0.933860.0429

您可以做的一件事是執行:

sudo pacman -U --overwrite '*' zoom_x86_64.pkg.tar.xz

這應該會導致 pacman 覆蓋現有文件。但是,--overwrite '*'不建議這樣做,因為它可能很危險。因此,手動移動或刪除現有文件/文件夾可能是一個更安全的選擇(因為沒有太多)。

引用自:https://unix.stackexchange.com/questions/584105