admin管理员组

文章数量:1652127

kylin bug

  • 项目场景:
  • 项目场景:
  • 原因分析:
    • sudo apt upgrade的错误

项目场景:

ubuntu kylin重装系统后无法连接WIFI


ubuntu kylin重装系统后无法连接WIFI,不显示有什么WIFI,也没有出现让输入密码的提示 查看网络状态:
ip a

注:上图的前面小红框中的“wlp2s0”即为我的无线网卡的名称,在未激活前,其状态为“DOWN”,而非本截图中的“UP”状态。


# 解决方案:
rfkill list
rfkill unblock all
sudo killall nm-applet
sudo nm-applet

参考文章
https://ywnz/linuxjc/4750.html
https://blog.csdn/zahuopuboss/article/details/49072605

项目场景:

ubuntu kylin重装系统后,无法使用apt安装软件


显示下面的错误:
sudo apt install git
没有可用的软件包 git,但是它被其它的软件包引用了。 这可能意味着这个缺失的软件包可能已被废弃,  
或者只能在其他发布源中找到

E: 软件包 git 没有可供安装的候选者
下列软件包有未满足的依赖关系: git : 依赖: liberror-perl 但无法安装它 推荐: less 但无法安装它 E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

重装了英文版本的系统,报错如下:

sudo apt install git


原因分析:


可能是软件源不对,但是改了软件源还是这样。


正确的银河麒麟系统软件源:

deb http://archive.kylinos/kylin/KYLIN-ALL 4.0.2sp2-desktop main restricted universe multiverse

注意这里要根据系统版本来更改,比如4.0.2sp2-desktop这个地方需要更改。(具体如何更改)

重装系统之后,发现源还是不能apt install 但是,之后换了上面所说正确的源。然后sudo apt update了一次,还是报错,而且很慢,推测网络不好。重新执行了一次sudo apt update,现在可行了。能够正确安装软件。

cat /proc/version
cat /etc/.kyinfo

sudo apt clean 
sudo apt update
sudo apt upgrade
sudo apt install -f 

参考链接:
https://my.oschina/chipo/blog/3093242

sudo apt upgrade的错误

Preparing to unpack .../cups-daemon_2.2.2-1kord1sp2~1_amd64.deb ...
Failed to stop cups.path: Connection timed out
See system logs and 'systemctl status cups.path' for details.
Failed to get load state of cups.path: Failed to activate service 'org.freedesktop.systemd1': timed out
dpkg: warning: subprocess old pre-removal script returned error exit status 1




dpkg: trying script from the new package instead ...
Failed to stop cups.path: Failed to activate service 'org.freedesktop.systemd1': timed out
See system logs and 'systemctl status cups.path' for details.
Failed to get load state of cups.path: Failed to activate service 'org.freedesktop.systemd1': timed out
dpkg: error processing archive /var/cache/apt/archives/cups-daemon_2.2.2-1kord1sp2~1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Failed to execute operation: Failed to activate service 'org.freedesktop.systemd1': timed out
Failed to execute operation: Failed to activate service 'org.freedesktop.systemd1': timed out


本文标签: 重装系统Ubuntukylinwifi