首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu18.04:libcryp.so.1.0.0:无法打开共享对象文件:没有这样的文件或目录

Ubuntu18.04:libcryp.so.1.0.0:无法打开共享对象文件:没有这样的文件或目录
EN

Ask Ubuntu用户
提问于 2019-02-06 15:21:21
回答 2查看 48.6K关注 0票数 8

这是

代码语言:javascript
复制
sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
linux-modules-4.15.0-33-generic linux-modules-4.15.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-image-4.15.0-33-generic linux-image-4.15.0-34-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 16.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 237395 files and directories currently 
installed.)
Removing linux-image-4.15.0-33-generic (4.15.0-33.36) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-33-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: 
libcrypto.so.1.0.0: cannot open shared object file: No such file or 
directory
Found Windows Boot Manager on 
/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 
127
dpkg: error processing package linux-image-4.15.0-33-generic (-- 
remove):
installed linux-image-4.15.0-33-generic package post-removal script 
subprocess returned error exit status 1
Removing linux-image-4.15.0-34-generic (4.15.0-34.37) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-34-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: 
libcrypto.so.1.0.0: cannot open shared object file: No such file or 
directory
Found Windows Boot Manager on 
/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code     
127
dpkg: error processing package linux-image-4.15.0-34-generic (-- 
remove):
installed linux-image-4.15.0-34-generic package post-removal script 
subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-33-generic
linux-image-4.15.0-34-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

https://i.stack.imgur.com/WaZPo.png

编辑:的输出

代码语言:javascript
复制
sudo locate libcrypto.so.1.0.0

/snap/core/5897/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core/6130/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core/6350/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core18/594/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/core18/677/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/gnome-3-26-1604/70/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/gnome-3-26-1604/74/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/snap/kde-frameworks-5-core18/26/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0


apt list libssl1*

Listing... Done
libssl1.0-dev/bionic-updates,bionic-security 1.0.2n-1ubuntu5.2 amd64
libssl1.0.0/bionic-updates,bionic-security,now 1.0.2n-1ubuntu5.2 amd64 [installed]
libssl1.1/bionic-updates,bionic-security,now 1.1.0g-2ubuntu4.3 amd64 [installed]
EN

回答 2

Ask Ubuntu用户

发布于 2019-04-22 16:10:17

首先,找到你的图书馆在哪里:

代码语言:javascript
复制
sudo locate libcrypto.so.1.0.0

然后将其复制到/usr/lib/文件夹中:

代码语言:javascript
复制
sudo cp /snap/gnome-3-26-1604/82/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/
票数 6
EN

Ask Ubuntu用户

发布于 2019-06-23 06:07:09

请检查在您的系统上安装了哪个版本的libssl,如果我在Ubuntu19.04上安装了libssl1.1,而不是必需的libssl1.0。所以我必须安装libssl1.0附带的软件。最棒的部分是ubuntu来安装像Termius这样的软件。然后按照"Rodrigo“的答案来解决这个问题。

找到已安装的路径:

sudo locate libcrypto.so.1.0.0

然后将已发现的路径添加到path变量中:

export PATH=<discovered path>:$PATH

或将库添加到预包含的路径:

sudo ln -s <discovered path> /usr/lib/

票数 5
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1116133

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档