可以使用 sudo dpkg -P --force-remove-reinstreq wechat-beta 来强制删除
我的微信的包是没有魔改过的“wechat-beta”,也是安装后卸载失败、重新安装失败,更新安装其他软件也失败。
可以使用 sudo dpkg -P --force-remove-reinstreq wechat-beta 来强制删除
我的微信的包是没有魔改过的“wechat-beta”,也是安装后卸载失败、重新安装失败,更新安装其他软件也失败。
感谢分享,又学到一招
原来 pre post 脚本放到了info目录下
感谢分享,已修改。
加上fi。
感谢分享,已修改。
加上fi。
在什么地方加,能不能把改好的那个文件发出来呀?
在什么地方加,能不能把改好的那个文件发出来呀?
最后一行加
可以使用 sudo dpkg -P --force-remove-reinstreq wechat-beta 来强制删除
我的微信的包是没有魔改过的“wechat-beta”,也是安装后卸载失败、重新安装失败,更新安装其他软件也失败。
我就是论坛搜到这个命令,强制删除后重装的,目前用起来很丝滑
重新安装显示失败
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
重新安装显示失败
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
还是 appimage 好!
作为个普通的 Linux 用户,不但要面对发行版、安装包各自为战,而且还天天尽为依赖、安装、卸载之类的无聊破事浪费时间😡
有这些闲功夫,多玩会儿 H 游不好么?多撸两把不爽么?
我的也成功了,新版微信不错,除了不能自动登录,别的还好。
感谢分享。
参照 https://bbs.deepin.org/post/269098
把fi加上应该就好了,我是重新安装,把这个脚本里的全注释了
至于这个脚本怎么找,看下面
在我的ubuntu上路径是/var/lib/dpkg/info/wechat-beta.postrm和/var/lib/dpkg/info/wechat-beta-allos.postrm
另外po一个我这里能用的微信:https://bbs.deepin.org/post/269080,老版的微信不能删,删了就登录失败