我是 Ubuntu 新手,第一次安装带有 Windows 双启动的 Ubuntu 22.04。
以某种方式安装了带有桌面 GUI 的服务器,并且有 2 个错误阻止我进一步安装它。
- 当从命令提示符中的启动菜单使用 Ubuntu 选项启动时,将显示以下行:
rtw_8821ce 0000:04:00.0: failed to send h2c command
这条线一直出现,但我能够启动并连接到互联网,并提出这个问题。当我在安装期间选择配置安全模式并进行网络规划时,直到我在正常模式下重新启动,才会显示上述行。
- 对于任何安装,包括 dictionary-common
得到同样的错误:
sudo apt-get install /var/cache/apt/archives/dictionaries-common_1.28.14_all.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
aspell : Depends: dictionaries-common but it is not installed
aspell-en : Depends: dictionaries-common (>= 0.49.2) but it is not installed
hunspell-en-us : Depends: dictionaries-common (>= 0.10) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
- 我试过的
apt --fix-broken install
结果是
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
dictionaries-common
The following NEW packages will be installed:
dictionaries-common
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
40 not fully installed or removed.
Need to get 0 B/185 kB of archives.
After this operation, 783 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 198739 files and directories currently installed.)
Preparing to unpack .../dictionaries-common_1.28.14_all.deb ...
Adding 'diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictiona
ries-common by dictionaries-common'
dpkg-divert: error: rename involves overwriting '/usr/share/dict/words.pre-dicti
onaries-common' with
different file '/usr/share/dict/words', not allowed
dpkg: error processing archive /var/cache/apt/archives/dictionaries-common_1.28.
14_all.deb (--unpack):
new dictionaries-common package pre-installation script subprocess returned err
or exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/dictionaries-common_1.28.14_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)