martyr-deepin / deepin-appstore

App Store for Deepin (legacy codebase)
https://dstore-appstore.deepin.cn/
GNU General Public License v3.0
114 stars 40 forks source link

使用商店安装和卸载应用失败 #19

Open qishibo opened 5 years ago

qishibo commented 5 years ago

会卡在界面不动,此时ps aux|grep apt无内容,但是通过命令行apt可以安装和卸载。

卸载重装商店无效

deepin 15.8
Linux qii 4.15.0-29deepin-generic #31 SMP Fri Jul 27 07:12:08 UTC 2018 x86_64 GNU/Linux

image

image

Iceyer commented 5 years ago

直观应该是lastore-daemon出问题了,试下重启这个进程或者重启机器能恢复吗?

qishibo commented 5 years ago

@Iceyer 重启机器无效,机器之前手误执行过权限修改命令,所以某些二进制文件可能少了s权限,不知道有啥关系没,【其实我从菜单栏里右键卸载软件也是无效的。。估计是一个毛病】,但具体还是不知道哪里权限的问题,有啥系统log能追么

Iceyer commented 5 years ago

不需要s权限,可能需要可执行权限,你试试这两个命令的输出结果:

┌💁  iceyer @ 💻  builder in 📁  ~
└❯ ls -alh /usr/bin/deepin-appstore*
-rwxr-xr-x 1 root root 1.1M 3月  20 17:43 /usr/bin/deepin-appstore
-rwxr-xr-x 1 root root 5.9M 4月  12 09:00 /usr/bin/deepin-appstore-backend-deb
-rwxr-xr-x 1 root root 6.4M 3月  20 17:43 /usr/bin/deepin-appstore-daemon

┌💁  iceyer @ 💻  builder in 📁  ~
└❯ ps -ef | grep lastore
root      4448     1  0 08:14 ?        00:00:02 /usr/bin/lastore-daemon
iceyer    8036  6967  0 13:24 pts/0    00:00:00 grep --color=auto lastore
qishibo commented 5 years ago

@Iceyer 看起来没啥不对的地方 image

Iceyer commented 5 years ago

先开一个终端执行 tail -F /var/log/lastore/daemon.log 再开一个终端执行 dbus-send --system --print-reply --dest=com.deepin.lastore /com/deepin/lastore com.deepin.lastore.Manager.InstallPackage string:'gedit' string:'gedit'

看下前一个终端的输出结果

qishibo commented 5 years ago

先开一个终端执行 tail -F /var/log/lastore/daemon.log 再开一个终端执行 dbus-send --system --print-reply --dest=com.deepin.lastore /com/deepin/lastore com.deepin.lastore.Manager.InstallPackage string:'gedit' string:'gedit'

看下前一个终端的输出结果

还是老状况,apt好使,但商店内卸载、安装应用无反应,开始菜单内卸载无反应,如下面动图:

深度录屏_deepin-terminal_20190530100619