USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

最大的社区版本,Ubuntu的发源地
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#16

帖子 寺島聰子 » 2021-06-04 21:48

$ sudo update-initramfs -c -k all
update-initramfs: Generating /boot/initrd.img-4.19.0-16-amd64
cp: '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf' を stat できません: そのようなファイルやディレクトリはありません
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.19.0-16-amd64 with 1.
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#17

帖子 寺島聰子 » 2021-06-04 21:59

検索
cp: '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf' を stat できません: そのようなファイルやディレクトリはありません

参考源
https://ameblo.jp/miyou55mane/entry-12492531734.html

エラーメッセージをよく読むと、「ttf-dejavu」が無いのが原因の模様。autoremoveを実行した時に消したのかな?
经常读错误信息的话,没有“ttf-dejavu”是原因之一。是实行autoemove的时候消去的吗?
(6)的话,从终端进入。
$ sudo apt install ttf-dejavu
$ sudo apt upgrade
今度はエラーが出ず、無事上記3つをインストールできました。
这次没有出现错误,顺利安装了上述3个。

$ sudo update-initramfs -c -k all
update-initramfs: Generating /boot/initrd.img-4.19.0-16-amd64
update-initramfs: Generating /boot/initrd.img-4.19.0-14-amd64

$
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#18

帖子 寺島聰子 » 2021-06-04 23:26

このエラーはドライバーとは関係がなく、システムの他の側面の設定が原因で発生するはずです。 出力される情報には update-initramfs の具体的なエラー情報が含まれていないため、実際の原因を知りたい場合は、update-initramfs を手動で実行する必要がある場合があります。
代码: 全选
sudo update-initramfs -c -k all
cp: '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf' を stat できません: そのようなファイルやディレクトリはありません

$ sudo sed -i '156s/$/\\/' /usr/src/8192cu-1.11/os_dep/linux/usb_intf.c

$ sudo dkms install 8192cu/1.11

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j3 KERNELRELEASE=4.19.0-16-amd64 -C /lib/modules/4.19.0-16-amd64/build M=/var/lib/dkms/8192cu/1.11/build............
cleaning build area...

DKMS: build completed.

8192cu.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.0-16-amd64/updates/dkms/

depmod.............

Backing up initrd.img-4.19.0-16-amd64 to /boot/initrd.img-4.19.0-16-amd64.old-dkms
Making new initrd.img-4.19.0-16-amd64
(If next boot fails, revert to initrd.img-4.19.0-16-amd64.old-dkms image)
update-initramfs............

DKMS: install completed.

$
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#19

帖子 寺島聰子 » 2021-06-04 23:32

このエラーはドライバーとは関係がなく、システムの他の側面の設定が原因で発生するはずです。 出力される情報には update-initramfs の具体的なエラー情報が含まれていないため、実際の原因を知りたい場合は、update-initramfs を手動で実行する必要がある場合があります。
代码: 全选
sudo update-initramfs -c -k all
cp: '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf' を stat できません: そのようなファイルやディレクトリはありません
$ sudo apt install ttf-dejavu
-----------------------------------------------------

$ sudo sed -i '156s/$/\\/' /usr/src/8192cu-1.11/os_dep/linux/usb_intf.c

$ sudo dkms install 8192cu/1.11

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j3 KERNELRELEASE=4.19.0-16-amd64 -C /lib/modules/4.19.0-16-amd64/build M=/var/lib/dkms/8192cu/1.11/build............
cleaning build area...

DKMS: build completed.

8192cu.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.19.0-16-amd64/updates/dkms/

depmod.............

Backing up initrd.img-4.19.0-16-amd64 to /boot/initrd.img-4.19.0-16-amd64.old-dkms
Making new initrd.img-4.19.0-16-amd64
(If next boot fails, revert to initrd.img-4.19.0-16-amd64.old-dkms image)
update-initramfs............

DKMS: install completed.

$
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#20

帖子 寺島聰子 » 2021-06-06 16:24

sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
その後、再起動します
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#21

帖子 寺島聰子 » 2021-06-06 16:31

sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
その後、再起動します
$ sudo depmod -a

$ sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/

$
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#22

帖子 寺島聰子 » 2021-06-06 16:58

ありがとうございます。成功したみたいです。wavemon を見ると、とても安定した受信状態のようです。非常感谢。好像成功了。看wavemon的话,好像是非常稳定的接收状态。
There is a known issue with power management on some hardware. If your WiFi connection drops after a few minutes, install the following module setting file to disable power management in your WiFi interface:

sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/
はしていません。此命令未执行。因为不知道有没有必要。

日本語の参考ページにしたがって後片付けしました。之后收拾了。
$ rm -rf ./rtl8192cu-fixes/

$ lsusb
Bus 006 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
$ sudo modinfo 8192cu | grep v0789
alias: usb:v0789p016Dd*dc*dsc*dp*ic*isc*ip*in*

最後までお付き合いいただき ありがとうございました!
谢谢大家陪我到最后!
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#23

帖子 寺島聰子 » 2021-06-06 17:19

特にupload が爆速になりました。速すぎて安定しすぎて怖くなりました。 :Aadterboom :Haha
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#24

帖子 寺島聰子 » 2021-06-06 19:44

報告。
マシンをスリープにして復帰した後に、RTL8192CU 802.11n WLAN Adapter
がネットワークに入れないみたいです。これはまさに このデバイスの省電力機能と関係すると思うので、スナップショット撮影した上で

sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/

してみます。
寺島聰子
帖子: 688
注册时间: 2016-06-03 14:39
系统: debian11 mate

Re: USB的WiFi适配器在windows上是足够的速度,但在debian上却很慢。

#25

帖子 寺島聰子 » 2021-06-06 19:48

$ sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/
cp: './rtl8192cu-fixes/8192cu-disable-power-manag