以下のパッケージの問題を修正する方法

以下のパッケージの問題を修正する方法

インストールしようとしましたアンバーツールしかし、インストールマニュアルに従うと、次の依存関係をインストールするように指示されました。

sudo apt-get install csh flex gfortran g++ xorg-dev \
     zlib1g-dev libbz2-dev patch python-tk python-matplotlib

次のようなエラーが発生しました:

The following packages have unmet dependencies:

 gfortran : Depends: gfortran-4.6 (>= 4.6.3-1~) but it is not going to be installed
 libbz2-dev : Depends: libbz2-1.0 (= 1.0.6-1) but 1.0.6-4 is to be installed
 xorg-dev : Depends: libfontenc-dev but it is not going to be installed

            Depends: libfs-dev but it is not going to be installed
            Depends: libice-dev but it is not going to be installed
            Depends: libsm-dev but it is not going to be installed
            Depends: libxaw7-dev but it is not going to be installed
            Depends: libxcomposite-dev but it is not going to be installed
            Depends: libxcursor-dev but it is not going to be installed
            Depends: libxfont-dev but it is not going to be installed
            Depends: libxft-dev but it is not going to be installed
            Depends: libxinerama-dev but it is not going to be installed
            Depends: libxmu-dev but it is not going to be installed
            Depends: libxmuu-dev but it is not going to be installed
            Depends: libxpm-dev but it is not going to be installed
            Depends: libxrandr-dev
            Depends: libxrender-dev but it is not going to be installed
            Depends: libxres-dev but it is not going to be installed
            Depends: libxss-dev but it is not going to be installed
            Depends: libxt-dev but it is not going to be installed
            Depends: libxtst-dev but it is not going to be installed
            Depends: libxv-dev but it is not going to be installed
            Depends: libxvmc-dev but it is not going to be installed
            Depends: libxxf86dga-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

これを実行する前に実行しましたsudo apt-get updateが、何も変わりませんでした。

これらのパッケージを修正して依存関係をインストールするにはどうすればよいですか?

答え1

これらのパッケージの一部は、universe リポジトリに存在します。これをインストールしないと、当然ながらインストールが失敗します。Update Manager 設定から有効にするか、次の操作を実行するだけで有効にできます。

sudo add-apt-repository universe

その後sudo apt-get update、もう一度インストールに戻ります。

関連情報