升级后无法锁屏,已解决
Tofloor
poster avatar
犇牛
deepin
2020-08-26 22:59
Author
本帖最后由 jiao 于 2020-8-27 17:03 编辑

8月26日升级后,发现tty来回切时自动锁屏而且卡顿明显,关键是无发登录,总是密码错误;现在发现是锁屏后无法登录:密码错误

是文件 /etc/shadow 权限问题
正常状态如下:

PC:~/Desktop$ ls -l /etc/shadow
-rw-r----- 1 root shadow 1928 8月  22 15:16 /etc/shadow


登录问题解决了,但是有点迟钝的感觉
Reply Favorite View the author
All Replies
avatar
犇牛
deepin
2020-08-26 23:52
#1
PC:~/Desktop$ sudo apt autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 deepin-authenticate (1.1.0.8-1) ...
mv: 无法获取'/lib/deepin-authenticate/common-auth-temp' 的文件状态(stat): 没有那个文件或目录
dpkg: 处理软件包 deepin-authenticate (--configure)时出错:
已安装 deepin-authenticate 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 dde-session-shell 的配置工作不能继续:
dde-session-shell 依赖于 deepin-authenticate (>= 1.0.0.2);然而:
  软件包 deepin-authenticate 尚未配置。

dpkg: 处理软件包 dde-session-shell (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
deepin-authenticate
dde-session-shell
E: Sub-process /usr/bin/dpkg returned an error code (1)

这个是个什么操作
Reply View the author
avatar
犇牛
deepin
2020-08-27 00:01
#2
现在不敢锁屏     不能切换tty
Reply View the author
avatar
jingle
deepin
2020-08-27 00:07
#3
https://bbs.deepin.org/post/200476
PC:~/Desktop$ sudo apt autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      

wiki 搜索  error code 先解决下
Reply View the author
avatar
犇牛
deepin
2020-08-27 00:18
#4
https://bbs.deepin.org/post/200476
wiki 搜索  error code 先解决下

好的,谢谢指点
Reply View the author
avatar
犇牛
deepin
2020-08-27 00:26
#5
https://bbs.deepin.org/post/200476
wiki 搜索  error code 先解决下

快捷键锁屏依然卡顿,而且无法解锁:始终提示密码错误
Reply View the author
avatar
花心胡萝卜
deepin
2020-08-27 00:31
#6
要不你dist-upgrade一下
貌似是sudo还是什么程序改了, 多了两行输出, 估计是认证字符串了....
Reply View the author
avatar
小明Hackintosh
deepin
2020-08-27 02:34
#7
我也进不去了!

  1. dpkg: 处理软件包 deepin-anything-server (--configure)时出错:
  2. 依赖关系问题 - 仍未被配置
  3. dpkg: 依赖关系问题使得 dde 的配置工作不能继续:
  4. dde 依赖于 dde-file-manager;然而:
  5.   软件包 dde-file-manager 尚未配置。

  6. dpkg: 处理软件包 dde (--configure)时出错:
  7. 依赖关系问题 - 仍未被配置
  8. 在处理时有错误发生:
  9. deepin-anything-dkms
  10. dde-file-manager
  11. huawei-wmi-dkms
  12. bcmwl-kernel-source
  13. deepin-anything-server
  14. dde
  15. E: Sub-process /usr/bin/dpkg returned an error code (1)
Copy the Code



Reply View the author
avatar
忘记、过去
deepin
2020-08-27 02:52
#8
sudo dpkg --configure -a 试下
Reply View the author
avatar
犇牛
deepin
2020-08-27 06:38
#9
家里的笔记本电脑是V20升级的没问题;
出问题的是从15.11升级来的台式机,不知道区别在哪
Reply View the author
avatar
走钢丝
deepin
2020-08-27 07:05
#10

以前类似错误的处理办法

  1. cd /var/lib/dpkg
  2. sudo mv info info.bak
  3. sudo mkdir info
  4. sudo dpkg --configure -a
  5. sudo apt install -f
  6. sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
  7. sudo rm -rf /var/lib/dpkg/info
  8. sudo mv /var/lib/dpkg/info.bak /var/lib/dpkg/info
Copy the Code
Reply View the author
avatar
小明Hackintosh
deepin
2020-08-27 18:46
#11
https://bbs.deepin.org/post/200476
以前类似错误的处理办法

好的,刚试了一下。可以。
Reply View the author
avatar
梁山伯住阳台
deepin
2020-08-27 18:57
#12
我是解锁感觉变慢了
Reply View the author
avatar
jingle
deepin
2020-08-28 04:42
#13
锁屏什么问题
Reply View the author
avatar
犇牛
deepin
2020-08-28 16:27
#14

锁屏解不开:密码错误问题已经解决

是文件 /etc/shadow 权限问题
正常状态如下:

PC:~/Desktop$ ls -l /etc/shadow
-rw-r----- 1 root shadow 1928 8月  22 15:16 /etc/shadow

处理方法:
# chown root:shadow /etc/shadow
# chmod u=rw,g=r /etc/shadow
Reply View the author
Comments
mantianlvye
2020-09-01 23:04
测试有效,问题解决了。