新しくインストールしたUbuntu 16.04にオクターブをインストールしようとしています。だから私はこれらのコマンドを試しました:
Sudo apt-add-repository ppa:octave/stable
Sudo apt-get update
Sudo apt-get install octave
「Sudo apt-get update」の後、次のエラーと警告が表示されました。
Err:9 http://ppa.launchpad.net/octave/stable/ubuntu xenial/main AMD64 Packages
404 Not Found
Err:10 http://ppa.launchpad.net/octave/stable/ubuntu xenial/main i386 Packages
404 Not Found
W: The repository 'http://ppa.launchpad.net/octave/stable/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/octave/stable/ubuntu/dists/xenial/main/binary-AMD64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/octave/stable/ubuntu/dists/xenial/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
そして、「Sudo apt-get install octave」の後:
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.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
octave : Depends: libarpack2 (>= 2.1) but it is not going to be installed
Depends: libcholmod3.0.6 but it is not going to be installed
Depends: liboctave3 (= 4.0.0-3ubuntu9) but it is not going to be installed
Depends: libosmesa6 (>= 10.2~) but it is not going to be installed
Recommends: libopenblas-base but it is not going to be installed or
libatlas3-base but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
これらの後、「Sudo apt-get -f install」を試してみると:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ソースコードをコンパイルできるように依存関係をインストールしようとしましたが、同様のエラーが発生しました(Sudo apt-get install libarpack2):
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.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libarpack2 : Depends: libgfortran3 (>= 4.6) but it is not going to be installed
Depends: liblapack3 but it is not going to be installed or
liblapack.so.3
E: Unable to correct problems, you have held broken packages.
今何ができますか?
16.04は新しく、すべてのパッケージがすべてのサーバーで使用できる状態ではありません。メインサーバーを使用してパッケージをダウンロードすると、問題が解決します。