我设法python 3.6
一起安装python 3.10
,问题是当在更新选项中选择3.6walinuxagent
时,服务在 while 时工作正常netbox
,netbox-rq
而nginx
服务不工作;选择3.10时会发生相反的情况。
解决方法是根据我要启动的服务选择每个 python 版本。有没有办法避免每次都这样做?
我设法python 3.6
一起安装python 3.10
,问题是当在更新选项中选择3.6walinuxagent
时,服务在 while 时工作正常netbox
,netbox-rq
而nginx
服务不工作;选择3.10时会发生相反的情况。
解决方法是根据我要启动的服务选择每个 python 版本。有没有办法避免每次都这样做?
运行时app upgrade
出现以下错误:
$ sudo sudo apt upgrade
[sudo] password for admin-federico-dostuni:
Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease
Hit:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease
Fetched 172 kB in 1s (176 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up update-notifier-common (3.192.1.15) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
import debian.deb822
File "/usr/lib/python3/dist-packages/Debian/deb822.py", line 78, in <module>
class TagSectionWrapper(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'
dpkg: error processing package update-notifier-common (--configure):
installed update-notifier-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
update-notifier-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
在线查看问题似乎是由模块中缺少collections.Mapping
的属性引起的。debian.deb822
要解决这个问题,我应该:
删除包update-notifier-common
sudo dpkg --remove --force-remove-reinstreq update-notifier-common
update-notifier-common
sudo apt-get install update-notifier-common
问题是我无法通过第一步,因为我收到以下错误消息:
sudo dpkg --remove --force-remove-reinstreq update-notifier-common
dpkg: dependency problems prevent removal of update-notifier-common:
ubuntu-server depends on update-notifier-common.
dpkg: error processing package update-notifier-common (--remove):
dependency problems - not removing
Errors were encountered while processing:
update-notifier-common
我检查了update-notifier-common
依赖关系,它看起来不太好:
$ apt-cache rdepends update-notifier-common
update-notifier-common
Reverse Depends:
update-notifier
flashplugin-installer
ubuntu-server
debconf
ttf-mscorefonts-installer
apt-config-auto-update
reboot-notifier
apt-config-auto-update
update-notifier
debconf
ubuntu-server
byobu
我怎样才能安全地删除update-notifier-common
而不弄乱整个操作系统?
在我目前的笔记本电脑上,我已将 /home 安装在单独的分区中,以防我需要重新安装操作系统,而无需备份和恢复文件和配置。
我的笔记本电脑出现硬件问题,公司又给我买了一台,如何备份旧笔记本电脑上的 /home 分区并恢复到新笔记本电脑?
我不知道可能是什么原因,如果硬件或软件问题,一切看起来都很好。
我还注意到一些奇怪的视觉故障,比如当我选择一段文字时,它会快速闪烁一次,然后就可以了。
这里有几个截图:https ://i.stack.imgur.com/DquIn.jpg - https://imgur.com/a/0yQuozx
在 Gnome 下,我通常使用键盘布局“English US alt.Intl”。使用 Alt Gr + N 写 Ñ 但我不能在我的工作笔记本电脑上做同样的事情,它有一个英文英国键盘。
看起来没有国际布局允许我使用与英国键盘相同的击键。有人知道我该如何解决吗?
编辑 TLTR:我正在寻找的是 UK Intl。使用用于激活额外符号的 Alt Gr,您可以从此链接http://zolid.com/uk-intl-kb/index.htm看到
在与 Windows 一起运行 Ubuntu 4 个月后,我想删除 Win 以将安装的分区设置为 /home 分区。
我有 Windows“以防万一出现问题”,但我认为,如果出现问题,我可以重新安装 Ubuntu(如果我无法修复它),拥有一个专用的 /home 分区将使我的生活更轻松,因为我不需要备份我的文件。
为了做好工作,是否有任何程序或最佳实践可以遵循?
在更新到内核 5.8.0 之前,我的内核 5.4.XX 没有蓝牙问题。我无法从 Grub 中选择 5.4.XX,不存在。
如果我dpkg --list | grep linux-image | grep ^ii
在终端上输入结果:
ii linux-image-5.8.0-38-generic 5.8.0-38.43~20.04.1 amd64 Signed kernel image generic
ii linux-image-5.8.0-40-generic 5.8.0-40.45~20.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-20.04 5.8.0.40.45~20.04.25 amd64 Generic Linux kernel image
如何再次降级到最新的内核 5.4.xx?