起初
$ xpra --version
xpra v3.0.7-r25627
然後我升級了xpra
$ sudo apt install xpra
[sudo] password for t:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
xpra
1 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
2 not fully installed or removed.
Need to get 314 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Get:1 https://xpra.org bionic/main amd64 xpra amd64 3.0.8-r25889-1 [314 kB]
Fetched 314 kB in 1s (267 kB/s)
(Reading database ... 485411 files and directories currently installed.)
Preparing to unpack .../xpra_3.0.8-r25889-1_amd64.deb ...
Unpacking xpra (3.0.8-r25889-1) over (3.0.7-r25627-1) ...
Setting up xpra (3.0.8-r25889-1) ...
但是之後
$ xpra --version
xpra v3.0.7-r25627
和
$ dpkg -l | grep -i xpra
ii python2-xpra 3.0.7-r25627-1 amd64 tool to detach/reattach running X programs
ii python3-xpra 3.0.7-r25627-1 amd64 tool to detach/reattach running X programs
ii xpra 3.0.8-r25889-1 amd64 tool to detach/reattach running X programs
ii xpra-html5 3.0.7-r25627-1 amd64 html5 xpra client
和
$ sudo apt install xpra
[sudo] password for t:
Reading package lists... Done
Building dependency tree
Reading state information... Done
xpra is already the newest version (3.0.8-r25889-1).
為什麼顯示xpra版本不符?
是由於 xpra 套件還是 apt 或 dpkg 造成的?
謝謝。
答案1
您已經升級了軟體包,但尚未升級軟體包,這決定了您真正使用的 Xpra 版本。
正如伊普爾所說,上游 Xpra 包將其內容分成xpra
包含啟動器腳本(和配置等)的小套件和包含實作的 Python 套件。
要升級 Xpra,您需要升級所有與 Xpra 相關的軟體包:
sudo apt install xpra xpra-html5 python3-xpra
xpra
套餐可以聲明對其他 Xpra 軟體包的嚴格版本依賴,這將導致它們全部升級sudo apt install xpra
;但事實並非如此,這就是為什麼用戶需要確保它們全部保持同步。 (我想上游打包商假設用戶一直升級他們的所有軟體包。)
您可以刪除 Python 2 包,不再需要它:
sudo apt purge python2-xpra