[Seek Help] Deepin20.1安装RT3290蓝牙适配器驱动make报错
Tofloor
poster avatar
180******65
deepin
2021-03-26 06:37
Author
king@20210323:~$ sudo dpkg -l|grep bluetooth
[sudo] king 的密码:
ii blueman 2.0.8-1 amd64 Graphical bluetooth manager
ii libbluetooth3:amd64 5.50.5-1+dde amd64 Library to use the BlueZ Linux Bluetooth stack
ii pulseaudio-module-bluetooth 12.2.13-1+eagle amd64 Bluetooth module for PulseAudio sound server
king@20210323:~$
king@20210323:~$ lspci
01:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
 
网上找到驱动解压后make报错
下载地址:https://codeload.github.com/mbergstrand/rtbth/zip/refs/heads/master
 
king@20210323:~/Downloads/rtbth-masterRT3290 Bluetooth/rtbth-master$ sudo make
请输入密码
[sudo] king 的密码:
验证成功
make -C /lib/modules/5.4.70-amd64-desktop/build M=/home/king/Downloads/rtbth-masterRT3290 Bluetooth/rtbth-master modules
make[1]: 进入目录“/usr/src/linux-headers-5.4.70-amd64-desktop”
make[1]: *** 没有规则可制作目标“Bluetooth/rtbth-master”。 停止。
make[1]: 离开目录“/usr/src/linux-headers-5.4.70-amd64-desktop”
make: *** [Makefile:24:all] 错误 2
king@20210323:~/Downloads/rtbth-masterRT3290 Bluetooth/rtbth-master$ ll
总用量 220
drwxr--r-- 2 king king 4096 10月 1 2015 include
-rw-r--r-- 1 king king 961 10月 1 2015 Makefile
-rw-r--r-- 1 king king 78 10月 1 2015 README.md
-rw-r--r-- 1 king king 11700 10月 1 2015 rtbth_core_bluez.c
-rw-r--r-- 1 king king 43250 10月 1 2015 rtbth_core_init.c
-rw-r--r-- 1 king king 2545 10月 1 2015 rtbth_core_main.c
-rw-r--r-- 1 king king 43329 10月 1 2015 rtbth_core_pci.c
-rw-r--r-- 1 king king 63392 10月 1 2015 rtbth_core_us.c
-rw-r--r-- 1 king king 2430 10月 1 2015 rtbth_hlpr_dbg.c
-rw-r--r-- 1 king king 10023 10月 1 2015 rtbth_hlpr_hw.c
-rw-r--r-- 1 king king 18937 10月 1 2015 rtbth_hlpr_linux.c
drwxr--r-- 2 king king 4096 10月 1 2015 tools
尝试使用root用户make报错相同
 
求大神指教,谢谢!
Reply Favorite View the author
All Replies
Ziggy
deepin
2021-03-26 07:41
#1

直接换内核看看行不行?一般网卡驱动有在驱动集成的

Reply View the author
180******65
deepin
2021-03-28 18:48
#2
Ziggy

直接换内核看看行不行?一般网卡驱动有在驱动集成的

king@20210323:~/Desktop$ uname -a
Linux 20210323 5.4.70-amd64-desktop #1 SMP Wed Oct 14 15:24:23 CST 2020 x86_64 GNU/Linux
king@20210323:~/Desktop$  sudo apt install linux-image-5.8.14-amd64-desktop
请输入密码
[sudo] king 的密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 freerdp2-x11 : 依赖: libfreerdp-client2-2 (>= 2.0.0~git20190204.1.2693389a+dfsg1) 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。
king@20210323:~/Desktop$

下载deb包安装,安装时依次出现以下依赖包关系
libfreerdp-client2-2_2.3.0dfsg1-1_amd64.deb
libfreerdp2-2_2.3.0dfsg1-1_amd64.deb
libavcodec58_4.3.2-0deb11u1_amd64.deb
libavutil56_4.3.2-0deb11u1_amd64.deb
libc6_2.31-10_amd64.deb
libgcc-s1_10.2.1-6_amd64.deb

安装libgcc-s1_10.2.1-6_amd64.deb报错

An error occurred while applying changes:
An error occurred while applying changes: dpkg: regarding .../libgcc-s1_10.2.1-6_amd64.deb containing libgcc-s1:amd64:
 libgcc-s1 breaks cryptsetup-initramfs (<< 2:2.2.2-3~)
  cryptsetup-initramfs (version 2:2.1.0-5+deb10u2) is present and installed.

dpkg: error processing archive /home/king/Downloads/deb/firefox_87.0-1_amd64/libgcc-s1_10.2.1-6_amd64.deb (--install):
 installing libgcc-s1:amd64 would break cryptsetup-initramfs, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 /home/king/Downloads/deb/firefox_87.0-1_amd64/libgcc-s1_10.2.1-6_amd64.deb



测试发现使用apt安装任何软件都会卡在这里
king@20210323:~/Desktop$ sudo apt-get install deepin-wine
请输入密码
[sudo] king 的密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
deepin-wine 已经是最新版 (2.18-24~rc3)。
您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 freerdp2-x11 : 依赖: libfreerdp-client2-2 (>= 2.0.0~git20190204.1.2693389a+dfsg1) 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。
king@20210323:~/Desktop$

Reply View the author
180******65
deepin
2021-03-28 20:28
#3
180******65

king@20210323:~/Desktop$ uname -a
Linux 20210323 5.4.70-amd64-desktop #1 SMP Wed Oct 14 15:24:23 CST 2020 x86_64 GNU/Linux
king@20210323:~/Desktop$  sudo apt install linux-image-5.8.14-amd64-desktop
请输入密码
[sudo] king 的密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 freerdp2-x11 : 依赖: libfreerdp-client2-2 (>= 2.0.0~git20190204.1.2693389a+dfsg1) 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。
king@20210323:~/Desktop$

下载deb包安装,安装时依次出现以下依赖包关系
libfreerdp-client2-2_2.3.0dfsg1-1_amd64.deb
libfreerdp2-2_2.3.0dfsg1-1_amd64.deb
libavcodec58_4.3.2-0deb11u1_amd64.deb
libavutil56_4.3.2-0deb11u1_amd64.deb
libc6_2.31-10_amd64.deb
libgcc-s1_10.2.1-6_amd64.deb

安装libgcc-s1_10.2.1-6_amd64.deb报错

An error occurred while applying changes:
An error occurred while applying changes: dpkg: regarding .../libgcc-s1_10.2.1-6_amd64.deb containing libgcc-s1:amd64:
 libgcc-s1 breaks cryptsetup-initramfs (<< 2:2.2.2-3~)
  cryptsetup-initramfs (version 2:2.1.0-5+deb10u2) is present and installed.

dpkg: error processing archive /home/king/Downloads/deb/firefox_87.0-1_amd64/libgcc-s1_10.2.1-6_amd64.deb (--install):
 installing libgcc-s1:amd64 would break cryptsetup-initramfs, and
 deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
 /home/king/Downloads/deb/firefox_87.0-1_amd64/libgcc-s1_10.2.1-6_amd64.deb



测试发现使用apt安装任何软件都会卡在这里
king@20210323:~/Desktop$ sudo apt-get install deepin-wine
请输入密码
[sudo] king 的密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
deepin-wine 已经是最新版 (2.18-24~rc3)。
您也许需要运行“apt --fix-broken install”来修正上面的错误。
下列软件包有未满足的依赖关系:
 freerdp2-x11 : 依赖: libfreerdp-client2-2 (>= 2.0.0~git20190204.1.2693389a+dfsg1) 但是它将不会被安装
E: 有未能满足的依赖关系。请尝试不指明软件包的名字来运行“apt --fix-broken install”(也可以指定一个解决办法)。
king@20210323:~/Desktop$

在 控制中心--更新,关闭智能镜像源,手动修改为阿里云后,正常安装libfreerdp2-2,但升级内核报错

king@20210323:~/Downloads$ sudo apt --fix-broken install
king@20210323:~/Downloads$ sudo apt install libfreerdp2-2
king@20210323:~/Downloads$ sudo apt install linux-image-5.8.14-amd64-desktop
……………………
正在解压 linux-image-5.8.14-amd64-desktop (5.8.14-amd64-desktop-1) ...
正在设置 linux-image-5.8.14-amd64-desktop (5.8.14-amd64-desktop-1) ...
Error! echo
Your kernel headers for kernel 5.8.14-amd64-desktop cannot be found at
/lib/modules/5.8.14-amd64-desktop/build or /lib/modules/5.8.14-amd64-desktop/source.
Reply View the author
Ziggy
deepin
2021-03-28 21:51
#4
180******65

在 控制中心--更新,关闭智能镜像源,手动修改为阿里云后,正常安装libfreerdp2-2,但升级内核报错

king@20210323:~/Downloads$ sudo apt --fix-broken install
king@20210323:~/Downloads$ sudo apt install libfreerdp2-2
king@20210323:~/Downloads$ sudo apt install linux-image-5.8.14-amd64-desktop
……………………
正在解压 linux-image-5.8.14-amd64-desktop (5.8.14-amd64-desktop-1) ...
正在设置 linux-image-5.8.14-amd64-desktop (5.8.14-amd64-desktop-1) ...
Error! echo
Your kernel headers for kernel 5.8.14-amd64-desktop cannot be found at
/lib/modules/5.8.14-amd64-desktop/build or /lib/modules/5.8.14-amd64-desktop/source.

不要随便换源,先卸载有问题的包

Reply View the author