更新到 ubuntu 20.04 后,每当我输入“pip install (some package)”或“pip --version”时,它都会说
adam@daryy:~$ pip3
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/cmdoptions.py", line 19, in <module>
from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils.util'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", …Run Code Online (Sandbox Code Playgroud) 我卸载了 Libreoffice 并只安装了 Openoffice 发现我不再喜欢 OpenOffice。我今天卸载了 OpenOffice 并尝试安装 LibreOffice,但出现错误。
The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:4.2.7) but it is not installed
libreoffice-help-en-us : Depends: libreoffice-l10n-en-us
libreoffice-java-common : Depends: libreoffice-common but it is not installed
libreoffice-l10n-en-gb : Depends: libreoffice-common but it is not installed
libreoffice-l10n-en-za : Depends: libreoffice-common but it is not installed
y-ppa-manager : Depends: yad (>= 0.8.0) but it is not installed
Depends: python-software-properties but it is not installed
Run Code Online (Sandbox Code Playgroud)
所以我尝试这样做sudo apt-get -f install …
这个问题可能与ROS完全有关,但是,目前我不确定错误的来源。因此,我将其发布在这个大社区中。
我正在尝试在 Ubuntu 18.04.2 LTS PC 上安装ROS Melodic。不幸的是,命令sudo apt install ros-melodic-desktop-full失败了。下面是相同命令的输出,再次运行时:
ravi@lab:~$ sudo apt 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.20190204.220757).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-rosdistro-modules : Depends: python-rospkg-modules but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a …Run Code Online (Sandbox Code Playgroud) do-release-upgrade 抛出此错误
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-1piubui5/groovy", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeController.py", line 2089, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeController.py", line 1932, in fullUpgrade
if not self.updateSourcesList():
File "/tmp/ubuntu-release-upgrader-1piubui5/DistUpgrade/DistUpgradeController.py", line 801, in updateSourcesList
self.sources = SourcesList(matcherPath=self.datadir)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 273, in __init__
self.matcher = SourceEntryMatcher(matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 470, in __init__
dist = DistInfo(base_dir=matcherPath)
File "/usr/lib/python3/dist-packages/aptsources/distinfo.py", line 184, in __init__
with open(dist_fname) as dist_file:
FileNotFoundError: …Run Code Online (Sandbox Code Playgroud) apt ×2
18.04 ×1
20.10 ×1
dependencies ×1
libreoffice ×1
pip ×1
python ×1
python3 ×1
ros ×1
upgrade ×1