ubuntu故障处理
<p>1、VMware虚拟机安装Ubuntu后,在系统终端挂载光驱后,不能解压tar包?</p><p><img src="https://img2020.cnblogs.com/blog/1617751/202109/1617751-20210913105140510-78466534.png"></p>
<p>原因分析:光驱写保护。</p>
<p>解决方法: 解除光驱保护即可。</p>
<p> </p>
<p> </p>
<p>2、Ubuntu系统终端上可使用密码切换至root账户,但通过ssh以root远程登录系统失败?</p>
<p> The remote system refused the connection.</p>
<p><img src="https://img2020.cnblogs.com/blog/1617751/202109/1617751-20210913102130275-125437643.png"></p>
<p>原因分析:sshd服务未允许root登录,建议不开启;</p>
<p>解决方法:修改sshd配置并重启即可。</p>
<p>sed -i 's@#PermitRootLogin prohibit-password@PermitRootLogin yes@g' /etc/ssh/sshd_config && service ssh restart && service ssh status</p>
<p> </p>
<p>3、Ubuntu软件源不能更新软件包?</p>
<div class="cnblogs_Highlighter">
<pre class="brush:bash;gutter:true;">root@zcl-test1:~# apt-get update
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-updates InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-backports InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-security InRelease
Ign:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-proposed InRelease
Err:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.Could not handshake: Error in the certificate verification.
Err:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-updates Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.Could not handshake: Error in the certificate verification.
Err:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-backports Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.Could not handshake: Error in the certificate verification.
Err:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-security Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.Could not handshake: Error in the certificate verification.
Err:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-proposed Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.Could not handshake: Error in the certificate verification.
Reading package lists... Done
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu eoan-proposed Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details. </pre>
</div>
<p>原因分析:https证书过期;</p>
<p>解决方法:更换为http协议访问即可。</p>
<div class="cnblogs_Highlighter">
<pre class="brush:bash;gutter:true;">cat <<eof> /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
eof
apt-get update
</pre>
</div>
<p><img src="https://img2020.cnblogs.com/blog/1617751/202201/1617751-20220113201934247-145667069.png"></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p><br><br>
来源:https://www.cnblogs.com/chalon/p/15261042.html
頁:
[1]