$ sudo apt-getインストールオクターブ
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
次の情報は問題を解決するのに役立ちます。
次のパッケージには満たされていない依存関係があります。
gnupg : Breaks: software-properties-common (<= 0.96.24.3) but 0.96.20.7 is to be installed
octave : Depends: liboctave4 (= 4.2.2-1ubuntu1) but it is not going to be installed
Depends: libqscintilla2-qt5-13 (>= 2.8.4) but it is not going to be installed
Depends: libqt5gui5 (>= 5.7.0) but it is not going to be installed
Depends: libqt5opengl5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5printsupport5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5widgets5 (>= 5.6.0~beta) but it is not going to be installed
Recommends: gnuplot-qt but it is not going to be installed or
gnuplot-x11 but it is not going to be installed or
gnuplot-nox
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
ベストアンサー1
端末を開き、次のように入力します。
sudo apt update
sudo apt upgrade
sudo apt --fix-broken install
sudo apt autoremove
次に、次を実行します。
sudo apt install octave
これがうまくいかない場合は、以下を使用してください。資格パッケージ間の不完全な依存関係の問題を自動的に検出し、いくつかの考えられる解決策を示します。
sudo apt install aptitude
sudo aptitude install octave
一部ガイドライン~の資格
両方が機能しない場合は、18.04から16.04の破損したパッケージを保持している可能性があります。次の2つの手順に従ってください。
/var/log/apt/term.log
テキストエディタでログファイルを開きます。- 「壊れた」パッケージをすべて見つけて、次のコマンドを使用して削除します。
sudo apt purge <package>