.png)
나는 우분투입니다뉴비, 그러니 양해해 주시기 바랍니다.
octave-3.2.4를 제거하려고 할 때 결국 다음을 수행했습니다.rm -rf모든 옥타브 관련 디렉토리 및 파일에/usr/빈/최신 버전의 GNU Octave를 설치하기 전에. 지금 Octave를 설치하려고 하면 다음 오류가 발생하며 이를 해결하는 데 도움이 필요합니다.
The following packages have unmet dependencies:
octave :
Depends: libarpack2 (>= 2.1) but it is not going to be installed
Depends: libfftw3-3 but it is not installable
Depends: liboctave3 (= 4.0.0-3ubuntu2~octave~precise5) but it is not going to be installed
Depends: libqscintilla2-8 but it is not installable
Depends: default-jre-headless but it is not installable
Recommends: pstoedit but it is not installable
E: Unable to correct problems, you have held broken packages.
Octave를 다시 설치하려는 명령은 다음과 같습니다.
wget ftp://ftp.gnu.org/gnu/octave/octave-3.8.0.tar.bz2
tar -xvf octave-3.8.0.tar.bz2
cd octave-3.8.0
sudo apt-get build-dep octave
./configure
make
sudo make install
편집하다:출력apt-cache policy libarpack2
libarpack2:
Installed: (none)
Candidate: 3.0.2-3
Version table:
3.0.2-3 0
500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
편집하다:출력apt-cache policy libarpack2-dev
libarpack2-dev:
Installed: (none)
Candidate: 3.0.2-3
Version table:
3.0.2-3 0
500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
편집하다:이것이 단서와 관련이 있기를 바랍니다. 다음에 대한 출력sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
dpkg-dev libatlas3gf-base libblas-dev libblas3gf libdpkg-perl liblapack-dev liblapack3gf linux-headers-generic-lts-quantal
linux-image-generic-lts-quantal r-base-dev r8168-dkms texinfo
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
편집하다:출력apt-cache policy libarpack2 libfftw3-3 liboctave3 libqscintilla2-8 default-jre-headless pstoedit
libarpack2:
Installed: (none)
Candidate: 3.0.2-3
Version table:
3.0.2-3 0
500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
libfftw3-3:
Installed: (none)
Candidate: (none)
Version table:
3.3-1ubuntu1 0
100 /var/lib/dpkg/status
liboctave3:
Installed: (none)
Candidate: 4.0.0-3ubuntu2~octave~precise5
Version table:
4.0.0-3ubuntu2~octave~precise5 0
500 http://ppa.launchpad.net/octave/stable/ubuntu/ precise/main amd64 Packages
libqscintilla2-8:
Installed: (none)
Candidate: (none)
Version table:
default-jre-headless:
Installed: (none)
Candidate: (none)
Version table:
pstoedit:
Installed: (none)
Candidate: (none)
Version table:
편집하다:출력sudo apt-get install libarpack2 libfftw3-3 liboctave3 libqscintilla2-8 default-jre-headless pstoedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libfftw3-3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package default-jre-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package pstoedit is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libqscintilla2-8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libfftw3-3' has no installation candidate
E: Package 'libqscintilla2-8' has no installation candidate
E: Package 'default-jre-headless' has no installation candidate
E: Package 'pstoedit' has no installation candidate
답변1
누락된 모든 패키지는 기본 저장소에 있으므로
sudo apt-add-repository main
sudo apt-get update
그리고 multiverse
좋은 생각이기도 하다
sudo apt-add-repository multiverse
sudo apt-get update
sudo apt-add-repository main
작동 하지 않으면 sudo apt-add-repository multiverse
다음을 수행하십시오.
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
- 열려 있는Software & Updates
main
에 대한 항목을 활성화universe
하고multiverse
딸깍 하는 소리Close
다음을 통해 패키지 소스를 새로 고칩니다.Reload
자체 컴파일 모험을 제거하세요
cd octave-3.8.0
sudo make uninstall
octave
다음을 통해 다시 설치하세요 .
sudo apt-get install --reinstall octave
그리고 파일을 삭제하여 패키지를 "제거"하지 마십시오./usr/bin