升級系統到9后,我下載的是netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb,在安裝過程中解決出現的各種依賴,只有一個依賴無法解決,信息如下:
$ sudo dpkg -i netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb
正在選中未選擇的軟件包 netease-cloud-music。
(正在讀取數據庫 ... 系統當前共安裝有 141133 個文件和目錄。)
正准備解包 netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb ...
正在解包 netease-cloud-music (1.0.0-2) ...
dpkg: 依賴關系問題使得 netease-cloud-music 的配置工作不能繼續:
netease-cloud-music 依賴於 libfontconfig1 (>= 2.11.94);然而:
系統中 libfontconfig1:amd64 的版本為 2.11.0-6.7+b1。
解決這個問題可以使用帶有選項的安裝方法:
$ sudo dpkg --ignore-depends=libfontconfig1 -i netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb
這樣雖然可以成功安裝,只是在以后的安裝時,還是會有依賴問題。有人說可以修改/var/lib/dpkg/status來解決這個問題,我沒有成功。
我最終的解決方法是重新打包。
把netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb 解壓到netease目錄
$ mkdir netease
$ dpkg -X netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb netease/
解壓DEBIAN信息
$ dpkg -e netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb netease/DEBIAN/
修改netease/DEBIAN下的control文件
$ vi netease/DEBIAN/control
找到/DEBIAN/control文件中的依賴libfontconfig1(>=2.11.94)改為libfontconfig1,然后重新打包.回到netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb目錄下執行:
$ dpkg-deb --build netease/ netease-music.deb
dpkg-deb: 正在 'netease-music.deb' 中編譯軟件包 'netease-cloud-music'。
編譯完成后,再執行安裝,過程沒有錯誤,但是在我運行netease-cloud-music時,出現如下信息:
$ netease-cloud-music
[0804/042803:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/netease-cloud-music/chrome-sandbox is owned by root and has mode 4755.
#0 0x7f6f7868af8e <unknown>
#1 0x7f6f786a02fb <unknown>
#2 0x7f6f7afe0d45 <unknown>
#3 0x7f6f7aef98ae <unknown>
#4 0x7f6f7ac78812 <unknown>
#5 0x7f6f7ac7f8ac <unknown>
#6 0x7f6f78603649 <unknown>
#7 0x7f6f7b0147f2 <unknown>
#8 0x7f6f7b015041 <unknown>
#9 0x7f6f785a447e <unknown>
#10 0x7f6f785a428f <unknown>
#11 0x7f6f78553348 cef_initialize
#12 0x00000057f9e4 <unknown>
#13 0x00000043ca03 <unknown>
#14 0x7f6f74ce62b1 __libc_start_main
#15 0x000000440389 _start
/usr/bin/netease-cloud-music: 行 8: 27459 已放棄 /usr/lib/netease-cloud-music/netease-cloud-music
根據信息提示執行如下方法:
$ sudo chown 0:0 /usr/lib/netease-cloud-music/chrome-sandbox
$ sudo chmod 4755 /usr/lib/netease-cloud-music/chrome-sandbox
再執行$ netease-cloud-music,運行正常。