
私はOctaveをインストールしようとしました
sudo apt-get install octave
そして、次のエラーが発生しました
Setting up octave (3.8.2-4) ...
error: couldn't read directory /usr/local/share/octave/packages: No such file or directory
error: called from
rebuild at line 29 column 7
pkg at line 505 column 25
dpkg: error processing package octave (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Errors were encountered while processing:
octave
E: Sub-process /usr/bin/dpkg returned an error code (1)
それから私はインストールしようとしました
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
しかし、また同じエラーです。考えられる原因は何でしょうか? 私はUbuntu初心者で、難しいと感じています。十分に検索しましたが、この問題は解決されていません
答え1
/usr/local/share/octave/packages フォルダが存在するかどうかを確認し、存在する場合はそれを削除して(ルートで)、インストールを再起動します(シェルでフォルダを削除するには、次のように入力します:sudo rm -r "'name of folder"
答え2
まずは試してみる sudo apt-get オートクリーン:
sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics