[App Store] 我通过应用商店卸载和升级应用后,我的apt install无法使用了 Resolved
Tofloor
poster avatar
motto
deepin
2024-01-18 13:49
Author

我昨天在应用商店卸载了微信安卓,然后升级其他软件和安装其他软件卡在安装一步,我就用命令强行停止了它

sudo rm /var/lib/dpkg/lock*
sudo systemctl stop unattended-upgrades
sudo systemctl start unattended-upgrades
sudo dpkg --configure -a

当天就好了。

今天继续用应用商店更新软件,卡在了安装这一步几个小时,我又强行停止了它。

现在就报错了,希望有大神告诉我怎么解决一下,我现在无法再使用apt install了.

➜  ~ sudo apt update   

Hit:1 https://community-packages.deepin.com/deepin apricot InRelease
Hit:2 https://community-packages.deepin.com/driver driver InRelease                                                   
Hit:3 https://pro-driver-packages.uniontech.com eagle InRelease                                                       
Hit:4 https://community-packages.deepin.com/printer eagle InRelease                                                   
Hit:5 http://packages.microsoft.com/repos/code stable InRelease                  
Hit:7 https://mirrors.ustc.edu.cn/docker-ce/linux/debian buster InRelease  
Get:6 https://app-store-files.uniontech.com/240118103253481/appstore deepin InRelease [6,131 B]
Get:8 https://app-store-files.uniontech.com/240118103253481/appstore deepin/appstore amd64 Packages [5,846 kB]
Fetched 5,852 kB in 2s (2,360 kB/s)   
Reading package lists... Done
Building dependency tree   
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
➜  ~ sudo apt list --upgradable
Listing... Done
deepin-wine-helper/unknown 5.3.6-1 amd64 [upgradable from: 5.2.31-1]
deepin-wine6-stable/unknown 6.0.0.65 amd64 [upgradable from: 6.0.0.61-1]
deepin-wine8-stable/unknown 8.16-deepin11 amd64 [upgradable from: 8.16-deepin10]
➜  ~ sudo apt upgrade  
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
➜  ~ sudo dpkg --configure -a
Setting up uengine.com.tencent.mm (8.0.16-220726) ...
chmod: cannot access '/data/uengine/apk/com.tencent.mm.2111011141.apk': No such file or directory
chmod: cannot access '/data/uengine/apk/com.tencent.mm.2111011141.apk.info': No such file or directory
UEngine start installing apk: com.tencent.mm.2111011141.apk

命令执行后,就一直卡在这里
Reply Favorite View the author
All Replies
motto
deepin
2024-01-18 13:51
#1

@deepin-mq @deepin-superuser 请帮我看一下这个问题,谢谢你

Reply View the author
👀偷偷观察
deepin
2024-01-18 14:07
#2

按照提示的命令

Reply View the author
忘记、过去
deepin
2024-01-18 14:40
#3

看上去你的电脑上安卓容器跑不起来啊,安卓应用的安装和卸载都会调用容器的,卡住了就无法继续了。


sudo rm -rf /var/lib/dpkg/info/uengine.com.tencent.mm*
sudo dpkg --configure -a
sudo dpkg -P --force-remove-reinstreq uengine.com.tencent.mm

终端执行试试,把安卓微信先卸载吧

Reply View the author
motto
deepin
2024-01-18 14:56
#4
忘记、过去

看上去你的电脑上安卓容器跑不起来啊,安卓应用的安装和卸载都会调用容器的,卡住了就无法继续了。


sudo rm -rf /var/lib/dpkg/info/uengine.com.tencent.mm*
sudo dpkg --configure -a
sudo dpkg -P --force-remove-reinstreq uengine.com.tencent.mm

终端执行试试,把安卓微信先卸载吧

非常感谢你,已经解决了

sudo rm -rf /var/lib/dpkg/info/uengine.com.tencent.mm*
sudo dpkg --configure -a

Processing triggers for spark-store (4.2.9) ...
Processing triggers for shared-mime-info (1.10.1-1+eagle) ...
Processing triggers for deepin-app-store (7.7.4.0013-1) ...
Rebuilding /usr/share/applications/bamf-2.index...

Reply View the author
motto
deepin
2024-01-18 14:59
#5
motto

非常感谢你,已经解决了

sudo rm -rf /var/lib/dpkg/info/uengine.com.tencent.mm*
sudo dpkg --configure -a

Processing triggers for spark-store (4.2.9) ...
Processing triggers for shared-mime-info (1.10.1-1+eagle) ...
Processing triggers for deepin-app-store (7.7.4.0013-1) ...
Rebuilding /usr/share/applications/bamf-2.index...

安卓版本微信我就不卸载了,真的太恶心人了。upgrade后又给我安装回来了

➜  ~ sudo apt upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  deepin-wine-helper deepin-wine6-stable deepin-wine8-stable
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 248 MB of archives.
After this operation, 692 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://com-store-packages.uniontech.com/appstore deepin/appstore amd64 deepin-wine6-stable amd64 6.0.0.65 [52.6 MB]
Get:2 https://com-store-packages.uniontech.com/appstore deepin/appstore amd64 deepin-wine8-stable amd64 8.16-deepin11 [194 MB]
Get:3 https://com-store-packages.uniontech.com/appstore deepin/appstore amd64 deepin-wine-helper amd64 5.3.6-1 [1,329 kB]
Fetched 248 MB in 6s (44.4 MB/s)        
dpkg: warning: files list file for package 'uengine.com.tencent.mm' missing; assuming package has no files currently installed
(Reading database ... 320174 files and directories currently installed.)
Preparing to unpack .../deepin-wine6-stable_6.0.0.65_amd64.deb ...
Unpacking deepin-wine6-stable (6.0.0.65) over (6.0.0.61-1) ...
Preparing to unpack .../deepin-wine8-stable_8.16-deepin11_amd64.deb ...

➜  ~ apt list --installed | grep uengine.com.tencent.mm  

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

uengine.com.tencent.mm/now 8.0.16-220726 all [installed,local]

Reply View the author