NanoはROSメロディックファイルエラー問題の壊れたパッケージをインストールします

NanoはROSメロディックファイルエラー問題の壊れたパッケージをインストールします


参照リンク

ros melodicを何度もインストールしようとしましたが、エラー、ファイルの破損、またはインストールの依存関係の問題が報告され続けました。

インストール段階に直接進みます。前にある他の詳細な投稿を参照してください。

sudo apt-get install ros-melodic-desktop-full

上記のコマンドを入力した後、壊れたパッケージを保持しているという問題が発生します。
ケースは次のとおりです。

sudo apt-get install ros-melodic-desktop-full
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:
 ros-melodic-desktop-full : Depends: ros-melodic-desktop but it is not going to be installed
                            Depends: ros-melodic-perception but it is not going to be installed
                            Depends: ros-melodic-simulators but it is not going to be installed
                            Depends: ros-melodic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

他のブロガーのプロンプトに従って、次のように入力します。

sudo  aptitude install ros-kinetic-desktop-full 

aptitudeがサポートされていない場合は、インストールできます

sudo apt-get install aptitude

次に、テキストの次の部分があります。

Accept this solution? [Y/n/q/?] 

初めてYを選択したところ、インストールプロセスが飛び出しました。

Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

完了したように見えますが、システムは何も実行していないので、引き続き適性を使用して実行してください。
初めてnを選択すると、いくつかのインストール依存ライブラリがポップアップ表示され、Yを選択すると、インストールプロセスが表示されます。

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Downgrade the following packages:                                        
1)     libgpgme11 [1.10.0-1ubuntu2.1 (now) -> 1.10.0-1ubuntu1 (bionic)]       
2)     libqt5qml5 [5.9.5-0ubuntu1.1 (now) -> 5.9.5-0ubuntu1 (bionic)]         
3)     libqt5quick5 [5.9.5-0ubuntu1.1 (now) -> 5.9.5-0ubuntu1 (bionic)]       
4)     libqt5quickwidgets5 [5.9.5-0ubuntu1.1 (now) -> 5.9.5-0ubuntu1 (bionic)]
5)     libuuid1 [2.31.1-0.4ubuntu3.6 (now) -> 2.31.1-0.4ubuntu3 (bionic)]     



Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
  libgpgme11 libqt5qml5 libqt5quick5 libqt5quickwidgets5 libuuid1 
The following NEW packages will be installed:
  cython{a} fltk1.3-doc{a} fluid{a} fonts-lato{a} gazebo9{a} 
  gazebo9-common{a} gazebo9-plugin-base{a} google-mock{a} hddtemp{a} 

最後に、インストールは正常に完了しました。ROSのインストールには依存プロジェクトが多すぎるとしか言えず、どのファイルがインストールされているかわからないと競合します。

Processing triggers for install-info (6.5.0.dfsg.1-2) ...
                                         
root@yuezh-ThinkStation-P320:/# sudo apt-get install ros-melodic-desktop-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ros-melodic-desktop-full is already the newest version (1.4.1-0bionic.20200604.134848).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Rosdepの失敗について

rosdepが見つかりません

sudo apt-get install python-rosdep

rosdep initrosdepアップデートは役に立たない

解決

おすすめ

転載: blog.csdn.net/ahelloyou/article/details/114917160