[other] 新版微信删除或者重新安装有问题看这儿
Tofloor
poster avatar
173******71
deepin
2024-03-06 14:44
Author

参照 https://bbs.deepin.org/post/269098

把fi加上应该就好了,我是重新安装,把这个脚本里的全注释了

image.png

至于这个脚本怎么找,看下面

9C4DCE68948CCA20C536C99F505E3CC2.png

在我的ubuntu上路径是/var/lib/dpkg/info/wechat-beta.postrm和/var/lib/dpkg/info/wechat-beta-allos.postrm

另外po一个我这里能用的微信:https://bbs.deepin.org/post/269080,老版的微信不能删,删了就登录失败

Reply Favorite View the author
All Replies
流浪的加菲
deepin
2024-03-06 15:28
#1

可以使用 sudo dpkg -P --force-remove-reinstreq wechat-beta 来强制删除

我的微信的包是没有魔改过的“wechat-beta”,也是安装后卸载失败、重新安装失败,更新安装其他软件也失败。

image.png

image.png

Reply View the author
f@deepin
deepin
2024-03-06 15:42
#2

感谢分享,又学到一招

原来 pre post 脚本放到了info目录下like

Reply View the author
哄哄
deepin
2024-03-06 16:00
#3

感谢分享,已修改。

加上fi。

Reply View the author
186******75
deepin
2024-03-06 16:17
#4
哄哄

感谢分享,已修改。

加上fi。

在什么地方加,能不能把改好的那个文件发出来呀?

Reply View the author
173******71
deepin
2024-03-06 16:36
#5
186******75

在什么地方加,能不能把改好的那个文件发出来呀?

最后一行加

Reply View the author
州客
deepin
2024-03-06 16:43
#6
流浪的加菲

可以使用 sudo dpkg -P --force-remove-reinstreq wechat-beta 来强制删除

我的微信的包是没有魔改过的“wechat-beta”,也是安装后卸载失败、重新安装失败,更新安装其他软件也失败。

image.png

image.png

我就是论坛搜到这个命令,强制删除后重装的,目前用起来很丝滑like

Reply View the author
186******75
deepin
2024-03-06 17:13
#7

重新安装显示失败

Selecting previously unselected package wechat-beta-allos.

(Reading database ... 465141 files and directories currently installed.)

Preparing to unpack .../888/下载/wechat-beta.deb ...

Unpacking wechat-beta-allos (1.0.0.145) over (1.0.0.145) ...

Processing triggers for bamfdaemon (0.5.4.1-1+eagle) ...

Rebuilding /usr/share/applications/bamf-2.index...

Processing triggers for desktop-file-utils (0.23-4) ...

Processing triggers for mime-support (3.62) ...

An error occurred while applying changes:

An error occurred while applying changes: /var/lib/dpkg/info/wechat-beta-allos.postrm: 9: /var/lib/dpkg/info/wechat-beta-allos.postrm: Syntax error: end of file unexpected (expecting "fi")

dpkg: warning: old wechat-beta-allos package post-removal script subprocess returned error exit status 2

dpkg: trying script from the new package instead ...

/var/lib/dpkg/tmp.ci/postrm: 9: /var/lib/dpkg/tmp.ci/postrm: Syntax error: end of file unexpected (expecting "fi")

dpkg: error processing archive /home/888/下载/wechat-beta.deb (--install):

new wechat-beta-allos package post-removal script subprocess returned error exit status 2

/var/lib/dpkg/tmp.ci/postrm: 9: /var/lib/dpkg/tmp.ci/postrm: Syntax error: end of file unexpected (expecting "fi")

dpkg: error while cleaning up:

new wechat-beta-allos package post-removal script subprocess returned error exit status 2

Errors were encountered while processing:

/home/888/下载/wechat-beta.deb

Reply View the author
173******71
deepin
2024-03-06 17:59
#8
186******75

重新安装显示失败

Selecting previously unselected package wechat-beta-allos.

(Reading database ... 465141 files and directories currently installed.)

Preparing to unpack .../888/下载/wechat-beta.deb ...

Unpacking wechat-beta-allos (1.0.0.145) over (1.0.0.145) ...

Processing triggers for bamfdaemon (0.5.4.1-1+eagle) ...

Rebuilding /usr/share/applications/bamf-2.index...

Processing triggers for desktop-file-utils (0.23-4) ...

Processing triggers for mime-support (3.62) ...

An error occurred while applying changes:

An error occurred while applying changes: /var/lib/dpkg/info/wechat-beta-allos.postrm: 9: /var/lib/dpkg/info/wechat-beta-allos.postrm: Syntax error: end of file unexpected (expecting "fi")

dpkg: warning: old wechat-beta-allos package post-removal script subprocess returned error exit status 2

dpkg: trying script from the new package instead ...

/var/lib/dpkg/tmp.ci/postrm: 9: /var/lib/dpkg/tmp.ci/postrm: Syntax error: end of file unexpected (expecting "fi")

dpkg: error processing archive /home/888/下载/wechat-beta.deb (--install):

new wechat-beta-allos package post-removal script subprocess returned error exit status 2

/var/lib/dpkg/tmp.ci/postrm: 9: /var/lib/dpkg/tmp.ci/postrm: Syntax error: end of file unexpected (expecting "fi")

dpkg: error while cleaning up:

new wechat-beta-allos package post-removal script subprocess returned error exit status 2

Errors were encountered while processing:

/home/888/下载/wechat-beta.deb

你这个脚本在报错 没有fi

Reply View the author
Linux大宝
deepin
2024-03-06 21:55
#9

还是 appimage 好!

作为个普通的 Linux 用户,不但要面对发行版、安装包各自为战,而且还天天尽为依赖、安装、卸载之类的无聊破事浪费时间😡

有这些闲功夫,多玩会儿 H 游不好么?多撸两把不爽么?

Reply View the author
出售星辰之书的书商
Moderator
2024-03-06 22:07
#10
跟着教程走 成功了 感谢 like
Reply View the author
晚秋(lateautumn)
Moderator
2024-03-06 22:18
#11

我的也成功了,新版微信不错,除了不能自动登录,别的还好。

Reply View the author
兆兆嘟嘟嘟
deepin
2024-03-06 22:29
#12

感谢分享。

Reply View the author