Неудавшееся удаление октавы на Ubuntu 12.04 (проблема, переустанавливающая октаву)

Я - Ubuntu newb, поэтому терпите меня.

При попытке удалить октаву 3.2.4, я закончил тем, что делал комнату-rf на всех связанных с октавой каталогах и файлах в/usr/bin/, прежде чем я мог установить последнюю версию Октавы GNU. При попытке установить Октаву теперь, я получаю следующую ошибку, с которой я нуждаюсь в помощи, решая:

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.  

Мои команды, пытающиеся переустановить Октаву:

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
2
задан 15 October 2015 в 16:01

1 ответ

Все недостающие пакеты находятся в основном репозитории, therfore

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 не работает, делает следующее

  1. sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
  2. Откройте Software и Updates
  3. Активируйте записи для main, universe и multiverse

    enter image description here

  4. Нажмите Close

  5. Обновите источники пакета через Перезагрузку

    enter image description here


Удалите свое приключение самокомпиляции

cd octave-3.8.0
sudo make uninstall

Установка octave снова через

sudo apt-get install --reinstall octave

И, не "удаляйте" пакеты через удаление файлов в /usr/bin

1
ответ дан 2 December 2019 в 05:01

Другие вопросы по тегам:

Похожие вопросы: