相关疑难解决方法(0)

如何报告错误?

我在 Ubuntu 上发现一个应用程序有问题。

问题 :

  • 我如何最好地报告问题?
  • 我应该提供什么样的信息?

bug-reporting

473
推荐指数
6
解决办法
6万
查看次数

ModuleNotFoundError: 没有名为“distutils.util”的模块

更新到 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)

python python3 pip

62
推荐指数
7
解决办法
14万
查看次数

尝试修复损坏的依赖项(Libre Office)

我卸载了 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 …

apt dependencies libreoffice

4
推荐指数
1
解决办法
1万
查看次数

在 Ubuntu 18.04 LTS 上安装 ROS Melodic 时,由于“apt --fix-broken 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)

package-management apt ros 18.04

4
推荐指数
1
解决办法
4996
查看次数

从 Ubuntu 20.04 升级到 20.10 时出错

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)

upgrade package-management 20.10

3
推荐指数
1
解决办法
4018
查看次数