shit ,i cannot use chinese input yet...
how to fix the bug of no wifi avalible:
先来说原因:内核版本太低导致的。想办法升级到4.20。(当然可能4.19也可以,我没试)
推测:如果安装ubuntu 系统出现无法使用wifi等,很可能是因为内核版本低导致的。看了很多网友教程,跟ubnutu wifi不可用相关的都可以试试升级内核,然后更新driver。
比如:
***安装ubuntu 16.04无法使用wifi
***安装ubuntu 18.04无法使用wifi
***安装ubuntu 19.04无法使用wifi
踩了的坑:
win 10 + ubunutu 16.04 LTS,
window: 表现正常。
ubuntu: 无wifi,无蓝牙,无声音,无亮度调节,无触摸板,不支持有线网!对,就是一个砖!幸亏鼠标和usb正常可用,不然就难了。
huawei机器比较特殊呗,可能是硬件等太新,老的内核无法提供支持。(具体不懂,不专业处,请指正,或忽略)。
在windows下载4.20版本的内核4个deb包,复制到u盘,进入ubuntu 安装。
我走的弯路:
1.先下的4.19 安装失败,报依赖错误,放弃了4.19版本,我估计可能是可用的,懒得试了。
2.下载4.16的安装成功,有线,蓝牙,触摸板等正常,wifi仍然不行。这下好了,可以直接在ubuntu下操作了。
3.下载4.20内核,安装成功。更新。 wifi正常。
建议如下,
https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/
1.直接下载4.20内核,我下的是:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/linux-headers-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/ linux-modules-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/linux-modules-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/linux-image-unsigned-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
下载是真的慢,翻tmd墙就快了,我最后用的手机翻ttt墙下载的,真难受。
下载好后:
sudo dpkg -i *.deb
一般报错误,这个4.19也报一样的依赖问题,libssl1.0的报错,具体报错没保存:
去下载这个包:
https://pan.baidu.com/s/1dQER1TkLLbK-cMeyfw-d-A
然后:
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4.1_amd64.deb
切换到内核下载的文件夹,
sudo dpkg -i *.deb
重新安装内核4.20,没报错了。
reboot
2.更新各种包,这个步骤我是在前面就做完了,可以参考下history,贴在最后了。
主要是以下几个:
2.1配 清华的源
2.2设置里面的addtional driver 参考这里:器:huawei matebook 14 安装ubuntu 16.04(进步)
2.3 整个都 sudo apt upgrade 一下,前前后后花了我差不多1GB流量,让它更新一晚上,早上起来就好了。万恶的qiang.
3.我还自己手动安装了以下包,但是现在感觉可能没必要:
Ubuntu 14.04安装Broadcom BCM4352网卡驱动 阅读数 5979
我把这些包都丢网盘上,自己看哪个可以用。baiduyun也是dog shit,,,不过有方法
https://pan.baidu.com/s/1BV2qzo3QI-EpLL4PAm5iYw
可能存在一些问题,不影响wifi使用,,老爱crash!
history 贴一下:
如果有漏了的自己看一下。
~$ history
1 ls
2 sudo uname -r
3 if
4 ifconfig
5 reboot
6 ifconfig
7 lshw -C network
8 sudo lshw -C network
9 rfkill list
10 sudo rfkill list
11 ls
12 ifconfig wlan 0 up
13 sudo ifconfig wlan 0 up
14 sudo cat /etc/modprobe.d/blacklist.conf
15 sudo su
16 sudo su
17 bluetoothctl
18 sudo bluetoothctl
19 sudo cat /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
20 sudo mv /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules.bak
21 reboot
22 ls
23 cp -r kernel_deb ~/
24 ls
25 cd kernel_deb/
26 ls
27 uname -r
28 sudo dpkg -i linux-headers-4.19.0-041900*
29 ls
30 sudo dpkg --get-selections |grep linux-img
31 sudo dpkg --get-selections |grep linux-image
32 uname -a
33 sudo dpkg -i linux-headers-4.19.0-041900_4.19.0-041900.201810221809_all.deb
34 sudo dpkg -i linux-headers-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
35 reboot
36 ls
37 cd kernel_deb/
38 ls
39 cd ..
40 ls
41 reboot
42 uname -r
43 ls
44 sudo dpkg -i dkms_2.6.1-4ubuntu4_all.deb
45 sudo dpkg -i broadcom-sta-dkms_6.30.223.271-10_all\(1\).deb
46 ls
47 cd ..
48 ls
49 cp -rf broadcom ~/
50 ls ~/
51 reboot
52 sudo gedit /boot/grub/grubenv
53 sudo gedit /etc/default/grub
54 sudo update-grub
55 history
56 reboot
57 ls
58 sudo vim /boot/grub/grub.cfg
59 sudo vi /boot/grub/grub.cfg
60 sudo gedit /boot/grub/grub.cfg
61 ls
62 sudo apt remove bcmwl-kernel-source
63 ls
64 cd broadcom/
65 ls
66 sudo dpkg -i dkms_2.6.1-4ubuntu4_all.deb
67 sudo dpkg -i broadcom-sta-dkms_6.30.223.271-10_all\(1\).deb
68 lshw -C network
69 sudo lshw -C network
70 sudo lspci
71 ls
72 sudo su
73 ls
74 cp -rf kernel-mb14 ~/
75 cd
76 ls
77 cd kernel-mb14/
78 ls
79 mkdir 419
80 ls
81 mv *.4.19* 419/
82 mv *4.19* 419/
83 ls
84 tree
85 ls 419/
86 ls
87 sudo dpkg -i *.deb
88 ls
89 sudo dpkg -i *.deb
90 sudo gedit /etc/default/grub
91 sudo source /etc/default/grub
92 history
93 sudo update-grub
94 reboot
95 ls
96 uname -r
97 ls
98 cd kernel_deb/
99 ls
100 rm linux-headers-4.19.0-041900-lowlatency_4.19.0-041900.201810221809_amd64.deb
101 ls
102 cd ..
103 ls
104 cd kernel-mb14/
105 ls
106 cd 419/
107 ls
108 rm linux-headers-4.19.0-041900-lowlatency_4.19.0-041900.201810221809_amd64.deb
109 ls
110 uname -r
111 ifconfig
112 ls
113 uname -r
114 uname -rs
115 ls
116 sudo dpkg -i *.deb
117 sudo rm /var/lib/dpkg/lock
118 sudo dpkg -i *.deb
119 ls
120 cd
121 sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
122 ls
123 sudo gedit /etc/apt/sources.list
124 sudo apt update
125 sudo apt-get update
126 cat /etc/apt/sources.list
127 sudo gedit /etc/apt/sources.list
128 sudo apt-get update
129 sudo rm /var/cache/apt/archives/lock
130 sudo rm /var/lib/dpkg/lock
131 sudo apt-get update
132 ps -e | grep apt
133 sudo killall aptd
134 ps -e | grep apt
135 sudo kill -9 2563
136 ps -e | grep apt
137 sudo apt-get update
138 history
139 rfkill list all
140 sudo gedit /etc/apt/sources.list
141 sudo apt-get update
142 sudo apt upgrade
143 sudo apt-get -f install
144 sudo apt upgrade
145 reboot
146 ifconfig
147 history
148 sudo rfkill list all
149 sudo apt-get update
150 sudo apt-get install bcmwl-kernel-source
151 reboot
152 sudo gedit /etc/modprobe.d/blacklist.conf
153 reboot
154 sudo apt-get update
155 sudo apt-get install bcmwl-kernel-source
156 sudo apt-get remove bcmwl-kernel-source
157 ls
158 sudo apt-get install bcmwl-kernel-source
159 uname -r
160 sudo apt-get autoremove
161 sudo dpkg --get-selections|grep linux
162 sudo apt-get remove linux-signed-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
163 sudo apt-get remove linux-signed-image-4.10.0-28-generic
164 sudo apt-get remove linux-image-extra-4.10.0-28-generic
165 sudo dpkg --get-selections|grep linux
166 sudo apt-get remove linux-image-4.10.0-28-generic
167 df -h
168 ls
169 uname -r
170 sudo apt-get remove linux-image-4.10.0-28-generic
171 sudo dpkg --get-selections|grep linux
172 sudo dpkg -P linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic linux-signed-image-4.10.0-28-generic
173 sudo dpkg --get-selections|grep linux
174 sudo apt-get remove linux-headers-4.19.0-041900
175 sudo dpkg -P linux-headers-4.19.0-041900
176 sudo apt-get remove linux-modules-4.19.0-041900-generic
177 sudo dpkg --get-selections|grep linux
178 sudo dpkg -P linux-modules-4.19.0-041900-generic
179 sudo dpkg --get-selections|grep linux
180 history
181 sudo apt autoremove
182 sudo dpkg --get-selections|grep linux
183 ls
184 cd broadcom/
185 ls
186 sudo dpkg -i *.deb
187 sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
188 sudo apt -f install
189 sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
190 sudo apt-get install -f
191 sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
192 reboot
193 tree
194 ls
195 cd handup_devices/
196 ls
197 cd ..
198 ls
199 cd ..
200 ls
201 cd shift_sys/
202 ls
203 cd tools/
204 ls
205 cp BaiduPCS-Go-3.6.4-linux-amd64.zip ~/
206 ls
207 exit
208 ls
209 cp shift_sys ~/ -rf
210 exit
211 ls
212 cd
213 ls
214 cd shift_sys/
215 ls
216 tree
217 ls
218 cd tools/
219 ls
220 ls ../../
221 cp BaiduPCS-Go-3.5.5.tar.gz ~/tools/
222 cd
223 ls
224 cd tools/
225 ls
226 tar -xvpf BaiduPCS-Go-3.5.5.tar.gz
227 ls
228 cd BaiduPCS-Go-3.5.5/
229 ls
230 cd baidupcs/
231 ls
232 cd ..
233 ls
234 ./build_linux.sh
235 ls
236 ./build.sh
237 ls
238 cat README.md
239 ls
240 cd
241 cd Downloads/
242 ls
247 sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4.1_amd64.deb
248 cd
249 ls
250 cd kernel-mb14/
251 ls
252 cd 419/
253 ls
254 wget linux-image-unsigned-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
255 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19/linux-image-unsigned-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
256 ls
257 cd
258 ls
259 cd /boot/
260 ls
261 ls
262 cd
263 ls
264 mkdir tools
265 mv BaiduPCS-Go-3.6.4-linux-amd64.zip tools/
266 ls
267 cd tools/
268 ls
269 unzip BaiduPCS-Go-3.6.4-linux-amd64.zip
270 ls
271 cd BaiduPCS-Go-3.6.4-linux-amd64/
272 ls
273 ./BaiduPCS-Go
274 ls
275 ./BaiduPCS-Go
276 ls
277 . BaiduPCS-Go
278 ./BaiduPCS-Go login
279 ls
280 ./BaiduPCS-Go login -bduss=
282 tree
283 sudo apt install tree
284 ls
285 cd broadcom/
286 tree
287 cd ..
288 tree kernel_deb/
289 tree kernel*
290 cd kernel-mb14/
291 ls
292 cd 419/
293 sudo dpkg -i *.deb
294 sudo apt install libssl1.1
295 sudo dpkg -i *.deb
296 ls
297 sudo dpkg -i *.deb
298 ls
299 df -h
300 reboot
301 ls
302 df -h
303 cd /boot/
304 ls
305 cd /
306 ls
307 ls
308 sudo rm vmlinuz.old
309 ls
310 sudo rm initrd.img.old
311 ls
312 cd boot/
313 ls
314 ls initrd.img-4.16.0-041600-generic.old-dkms
315 ll -h initrd.img-4.16.0-041600-generic.old-dkms
316 sudo rm initrd.img-4.16.0-041600-generic.old-dkms
317 ls
318 df -h
319 ls
320 exit
321 uname -r
322 ls
323 cd kernel-mb14/
324 ls
325 cd 419/
326 ls
327 df -h
328 history
329 sudo dpkg --get-selections|grep linux
330 sudo dpkg -p linux-modules-4.15.0-52-generic
331 sudo dpkg -P linux-modules-4.15.0-52-generic
332 sudo dpkg -P linux-image-4.15.0-52-generic
333 sudo apt autoremove
334 df -h
335 sudo apt install -f
336 sudo dpkg --get-selections|grep linux
337 sudo dpkg -P linux-headers-4.19.0-041900
338 sudo dpkg -P linux-image-unsigned-4.19.0-041900-generic
339 sudo dpkg -P linux-headers-4.19.0-041900 linux-modules-4.19.0-041900-generic
340 sudo dpkg -P linux-image-unsigned-4.19.0-041900-generic
341 sudo dpkg --get-selections|grep linux
342 df -h
343 sudo apt autoremove
344 sudo apt autoclean
345 df -h
346 sudo apt update
347 sudo apt upgrade
348 history
349 sudo dpkg -selections |grep linux
350 sudo dpkg --get -selections |grep linux
351 sudo dpkg --get-selections |grep linux
352 sudo dpkg --get-selections |grep linux |grep 19
353 sudo dpkg -P linux-headers-4.19.0-041900-generic
354 ls
355 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/linux-headers-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
356 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/ linux-modules-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
357 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/linux-modules-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
358 ls
359 cd ..
360 ls
361 cd ..
362 ls
363 mv kernel-mb14 kernel19
364 ls
365 tree kernel_deb/
366 tree kernel19/
367 rm kernel_deb/ -rf
368 ls
369 mkdir kernel20
370 cd kernel
371 cd kernel20/
372 ls
373 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc6/linux-image-unsigned-4.20.0-042000rc6-generic_4.20.0-042000rc6.201812091930_amd64.deb
380 uname -r
381 df =h
382 df -h
383 ls
384 sudo dpkg -i *.deb
385 uname -r
386 reboot
387 ping baidu.com
388 ls