【解决】apt-get命令出现了错误
Tofloor
poster avatar
honwhywang
deepin
2017-06-05 06:33
Author
本帖最后由 honwhywang 于 2017-6-11 18:40 编辑
  1. honwhy@deepin:/var$ curl
  2. curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
  3. honwhy@deepin:/var$ sudo apt-get install curl
  4. 正在读取软件包列表... 完成
  5. 正在分析软件包的依赖关系树      
  6. 正在读取状态信息... 完成      
  7. curl 已经是最新版 (7.52.1-3)。
  8. 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
  9. 有 1 个软件包没有被完全安装或卸载。
  10. 解压缩后会消耗 0 B 的额外空间。
  11. 您希望继续执行吗? [Y/n] y
  12. 正在设置 doc-base (0.10.7) ...
  13. /var/lib/dpkg/info/doc-base.postinst: 33: /var/lib/dpkg/info/doc-base.postinst: install-docs: not found
  14. dpkg: 处理软件包 doc-base (--configure)时出错:
  15. 子进程 已安装 post-installation 脚本 返回错误状态 127
  16. 在处理时有错误发生:
  17. doc-base
  18. E: Sub-process /usr/bin/dpkg returned an error code (1)
  19. honwhy@deepin:/var$
Copy the Code
a安装其他软件也会出现这样的错误`/var/lib/dpkg/info/doc-base.postinst: 33: /var/lib/dpkg/info/doc-base.postinst: install-docs: not found`
Reply Favorite View the author
All Replies
avatar
lcw0268
deepin
2017-06-05 10:20
#1
sudo apt-get remove doc-base && sudo apt-get autoremove
Reply View the author
avatar
honwhywang
deepin
2017-06-06 08:03
#2
https://bbs.deepin.org/post/140533
sudo apt-get remove doc-base && sudo apt-get autoremove

经过这么处理之后 似乎没有和doc-base相关的错误了
但是
  1. honwhy@deepin:~$ curl
  2. curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
Copy the Code

这个命令还是这样
Reply View the author
avatar
lcw0268
deepin
2017-06-06 10:13
#3
https://bbs.deepin.org/post/140533
经过这么处理之后 似乎没有和doc-base相关的错误了
但是

这不是apt-get错误。
你系统dpkg,curl重装看看。
Reply View the author
avatar
honwhywang
deepin
2017-06-06 18:00
#4
https://bbs.deepin.org/post/140533
这不是apt-get错误。
你系统dpkg,curl重装看看。

curl依赖的动态库文件找不到
我重新安装curl还是出现问题
Reply View the author
avatar
honwhywang
deepin
2017-06-07 07:28
#5
https://bbs.deepin.org/post/140533
curl依赖的动态库文件找不到
我重新安装curl还是出现问题

查到了一个stackoverflow
https://stackoverflow.com/questions/37012612/how-to-create-lib-curl-gnutls-so-4
Reply View the author
avatar
159******79
deepin
2017-06-07 09:11
#6
apt-get update一下,再运行这个命令
Reply View the author
avatar
要讲武德
deepin
2017-06-07 11:10
#7
现在不是直接apt install就好了吗。加get不累啊
Reply View the author
avatar
honwhywang
deepin
2017-06-08 06:35
#8
https://bbs.deepin.org/post/140533
apt-get update一下,再运行这个命令

还是不行的
```
curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
```
curl命令依赖的动态库找不到还是会报错的
Reply View the author
avatar
honwhywang
deepin
2017-06-12 02:39
#9
回复以上
用下面命令可以解决这个问题
```
sudo apt install --reinstall libcurl3
```
Reply View the author