錯誤:子程序 貼上 被信號 (中斷的管線) 終止了 處理時發生錯誤 [論壇 - Ubuntu 與 LXDE]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊



錯誤:子程序 貼上 被信號 (中斷的管線) 終止了 處理時發生錯誤
會員一級
註冊日期:
10/31 23:58:43
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 0
MP : 0 / 0
EXP: 0
離線
我灌雙系統 Ubuntu16.04

~$ sudo apt-get upgrade
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
您也許得執行 'apt-get -f install' 以修正這些問題。
下列的套件有未滿足的相依關係:
nvidia-cuda-toolkit : 相依關係: nvidia-cuda-dev (= 7.5.18-0ubuntu1) 但它卻尚未安裝
E: 未能滿足相依關係。試試 -f 選項。


~$ sudo apt-get -f install
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
正在修正相依關係... 完成
下列的額外套件將被安裝:
nvidia-cuda-dev
推薦套件:
libnvcuvid1
下列【新】套件將會被安裝:
nvidia-cuda-dev
升級 0 個,新安裝 1 個,移除 0 個,有 0 個未被升級。
42 個沒有完整得安裝或移除。
需要下載 0 B/201 MB 的套件檔。
此操作完成之後,會多佔用 467 MB 的磁碟空間。
是否繼續進行 [Y/n]? [Y/n] y
(讀取資料庫 ... 目前共安裝了 269787 個檔案和目錄。)
準備解開 .../nvidia-cuda-dev_7.5.18-0ubuntu1_amd64.deb ...
解開 nvidia-cuda-dev (7.5.18-0ubuntu1) 中...
dpkg: error processing archive /var/cache/apt/archives/nvidia-cuda-dev_7.5.18-0ubuntu1_amd64.deb (--unpack):
正要取代 '/usr/lib/x86_64-linux-gnu/stubs/libcublas.so',它也是套件 libcublas-dev 10.2.0.168-1 的檔案
dpkg-deb:錯誤:子程序 貼上 被信號 (中斷的管線) 終止了
處理時發生錯誤:
/var/cache/apt/archives/nvidia-cuda-dev_7.5.18-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


試過很多方法,包括:
刪掉 /usr/lib/x86_64-linux-gnu/stubs/libcublas.so
刪掉 /var/cache/apt/archives/nvidia-cuda-dev_7.5.18-0ubuntu1_amd64.deb
sudo apt-get clean
$ sudo apt-get update
$ sudo apt-get upgrade


我想要安裝
~$ pip install --upgrade tensorflow-gpu
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting tensorflow-gpu
Downloading https://files.pythonhosted.org/packages/ce/9a/6a3985daf15d0b87b1ef3c499293cf0889cd294223a6ca28b9529770b29e/tensorflow_gpu-2.0.0-cp27-cp27mu-manylinux2010_x86_64.whl (380.8MB)
|█████████ | 106.4MB 452kB/s eta 0:10:07ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/commands/install.py", line 382, in run
resolver.resolve(requirement_set)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/legacy_resolve.py", line 201, in resolve
self._resolve_one(requirement_set, req)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/legacy_resolve.py", line 365, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/legacy_resolve.py", line 313, in _get_abstract_dist_for
req, self.session, self.finder, self.require_hashes
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/operations/prepare.py", line 194, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/download.py", line 465, in unpack_url
progress_bar=progress_bar
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/download.py", line 316, in unpack_http_url
progress_bar)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/download.py", line 551, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/download.py", line 253, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/utils/hashes.py", line 80, in check_against_chunks
for chunk in chunks:
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/download.py", line 223, in written_chunks
for chunk in chunks:
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/utils/ui.py", line 160, in iter
for x in it:
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_internal/download.py", line 212, in resp_read
decode_content=False):
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_vendor/urllib3/response.py", line 564, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_vendor/urllib3/response.py", line 529, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python2.7/dist-packages/pip-19.3.1-py2.7.egg/pip/_vendor/urllib3/response.py", line 439, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
結果錯誤,我在想是不是上面那個問題解決就好了

11/1 0:09:22
應用擴展 工具箱
回覆: 錯誤:子程序 貼上 被信號 (中斷的管線) 終止了 處理時發生錯誤
會員二級
註冊日期:
2017/3/23 10:15
所屬群組:
已註冊使用者
等級: 8
HP : 0 / 182
MP : 29 / 1411
EXP: 29
離線
你是想裝 cuda 嗎?

7.5
https://github.com/Mint-Fans/linux-package/blob/master/Build%20NVIDIA%20CUDA%207.5

8.0
https://github.com/Mint-Fans/linux-package/blob/master/Build%20NVIDIA%20CUDA%208.0

那個是套件檔案強碰到,因為檔案重複
正要取代 '/usr/lib/x86_64-linux-gnu/stubs/libcublas.so',它也是套件 libcublas-dev 10.2.0.168-1 的檔案


這是apt套件管理器失敗的地方

應該移除掉 libcublas-dev 就可以了,那如果拖一整串套件出來要讓你移除的話
那就別刪套件
把 /var/lib/dpkg/info/libcublas-dev.list 的內容清空 應該舊可以解決了

11/1 15:32:35
應用擴展 工具箱


 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.