关于ArchLinux软件降级的问题
由于Clion中,调试所用gdb版本要求最新到v11.1,所以只能对gdb进行降级,方法如下
你需要添加非官方的 archlinuxfr 仓库
sudo vim /etc/pacman.conf
添加如下行:
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
更新仓库
sudo pacman -Syyy
安装downgrade
sudo pacman -S downgrade
对gdb降级
sudo downgrade gdb gdb-common
选择你要降级的版本,回车
sudo vim /etc/pacman.conf
#添加下面两行
IgnorePkg = gdb
IgnorePkg = gdb-common
关于蓝牙服务无法启动的问题
在安装了bluez和bluez-utils,蓝牙服务仍然无法开启,错误日志如下:
# journalctl -xeu bluetooth.service
Mar 18 13:04:24 overflow systemd[1]: Failed to start Bluetooth service.
░░ Subject: A start job for unit bluetooth.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit bluetooth.service has finished with a failure.
░░
░░ The job identifier is 2813 and the job result is failed.
Mar 18 13:12:36 overflow systemd[1]: Starting Bluetooth service...
░░ Subject: A start job for unit bluetooth.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit bluetooth.service has begun execution.
░░
░░ The job identifier is 2919.
Mar 18 13:12:36 overflow systemd[5708]: bluetooth.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/bluetooth: No such file or dir>
Mar 18 13:12:36 overflow systemd[5708]: bluetooth.service: Failed at step NAMESPACE spawning /usr/lib/bluetooth/bluetoothd: No such file or directory
异常产生原因: bluez版本过新
解决办法:降级bluez
sudo downgrade bluez
ArchLinux挂载vhd
需要安装以下三个工具
yay -S hivex
yay -S perl-sys-virt
yay -S libguestfs
运行guestmount
guestmount --add your_vhd_file.vhd --ro /mnt/vhd/ -m /dev/sda
--add
选项用于您要访问的vhd文件--ro
设置为只读,或者您可以--rw
用于读/写/mnt/vhd
您要挂载的路径-m /dev/sda
指定要挂载的.vhd
文件中的哪个分区。