我是 Ubuntu新手,所以请耐心等待。
在尝试卸载 octave-3.2.4 时,我最终这样做射频在所有与 Octave 相关的目录和文件中/usr/bin/在我安装最新版本的 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