0
我一直在嘗試一切安裝opencv的依賴關係。首先,我文通過教程:永遠不能得到所有的opencv上的樹莓派的依賴3
https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/
後這樣做,我還是留下了超過100個滿足的依賴關係,所以我跑了
sudo apt-get build-dep opencv --fix-missing
這回:
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
texlive-base texlive-fonts-extra
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
117 not fully installed or removed.
Need to get 0 B/272 MB of archives.
After this operation, 768 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 139246 files and directories currently installed.)
Preparing to unpack .../texlive-base_2016.20170123-5_all.deb ...
Unpacking texlive-base (2016.20170123-5) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/texlive-base_2016.20170123-5_all.deb (--unpack):
cannot copy extracted data for './usr/share/doc/texlive-doc/texlive/texlive-en/archive/live-2004.tex.gz' to '/usr/share/doc/texlive-doc/texlive/texlive-en/archive/live-2004.tex.gz.dpkg-new': unexpected end of file or stream
Preparing to unpack .../texlive-fonts-extra_2016.20170123-5_all.deb ...
Unpacking texlive-fonts-extra (2016.20170123-5) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/texlive-fonts-extra_2016.20170123-5_all.deb (--unpack):
cannot copy extracted data for './usr/share/texlive/texmf-dist/fonts/type1/adobe/sourcesanspro/SourceSansPro-Semibold.pfb' to '/usr/share/texlive/texmf-dist/fonts/type1/adobe/sourcesanspro/SourceSansPro-Semibold.pfb.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/texlive-base_2016.20170123-5_all.deb
/var/cache/apt/archives/texlive-fonts-extra_2016.20170123-5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
E: Failed to process build dependencies
然後我跑
sudo apt-get update
sudo apt-get upgrade --fix-missing
,並得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
texlive-fonts-recommended :
Depends: texlive-base (>= 2016.20170123-2) but it is not installed
Recommends: tex-gyre but it is not installed
Recommends: texlive-fonts-recommended-doc but it is not installed
Recommends: tipa (>= 2:1.2-2.1) but it is not installed
texlive-latex-base :
Depends: texlive-base (>= 2016.20170123-2) but it is not installed
Recommends: texlive-latex-base-doc but it is not installed
texlive-latex-extra : Depends: texlive-base (>= 2016.20170123-2) but it is not installed
Recommends: texlive-generic-extra but it is not installed
Recommends: texlive-latex-extra-doc but it is not installed
texlive-latex-recommended : Depends: texlive-base (>= 2016.20170123-2) but it is not installed
Recommends: prosper (>= 1.00.4+cvs.2006.10.22) but it is not installed
Recommends: texlive-latex-recommended-doc but it is not installed
texlive-pictures : Depends: texlive-base (>= 2016.20170123-2) but it is not installed
Recommends: texlive-pictures-doc but it is not installed
Recommends: tk but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
所以我這樣做:
sudo apt --fix-broken install
,並得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
fonts-cabin fonts-comfortaa fonts-croscore fonts-ebgaramond fonts ebgaramond-extra fonts-font-awesome fonts-freefont-otf fonts-gfs-artemisia fonts-gfs-complutum fonts-gfs-didot fonts-gfs-neohellenic fonts-gfs-olga fonts-gfs-solomos fonts-junicode fonts-lobster fonts-lobstertwo fonts-noto-hinted fonts-oflb-asana-math fonts-roboto-hinted fonts-sil-gentiumplus fonts-sil-gentiumplus-compact fonts-stix ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
lmodern texlive-base
Suggested packages:
ghostscript gv | postscript-viewer perl-tk
The following NEW packages will be installed:
lmodern texlive-base
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
117 not fully installed or removed.
Need to get 9,461 kB/25.2 MB of archives.
After this operation, 80.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf lmodern all 2.004.5-3 [9,461 kB]
Fetched 9,461 kB in 9s (1,010 kB/s)
Preconfiguring packages ...
(Reading database ... 139246 files and directories currently installed.)
Preparing to unpack .../texlive-base_2016.20170123-5_all.deb ...
Unpacking texlive-base (2016.20170123-5) ...
dpkg-deb (subprocess): decompressing archive member: lzma error:
compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/texlive-base_2016.20170123-5_all.deb (--unpack):
cannot copy extracted data for './usr/share/doc/texlive-doc/texlive/texlive-en/archive/live-2004.tex.gz' to '/usr/share/doc/texlive-doc/texlive/texlive-en/archive/live-2004.tex.gz.dpkg-new': unexpected end of file or stream
Selecting previously unselected package lmodern.
Preparing to unpack .../lmodern_2.004.5-3_all.deb ...
Unpacking lmodern (2.004.5-3) ...
Errors were encountered while processing:
/var/cache/apt/archives/texlive-base_2016.20170123-5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
所以,我想
sudo易於得到-f安裝
幾乎得到了同樣的東西。總是這個tex住基地的問題!我不知道該怎麼做,因爲我不是一個命令行專家,我當然不習慣下載依賴關係......看起來有些東西是腐敗的或遇到文件結束的權利?我該怎麼辦?
我真的需要在我的Raspberry 3上使用openCV!有人知道我是否可以預先安裝openCV來查找Raspbian的圖像?不適用於90美元! :)
或者只是幫助我自己做?