I can't install any packages or make any updates 18.04, I'm trying to remove old kernels
This is the output of
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
Edit:
the output of
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]
boot apt grub2 kernel dpkg
New contributor
|
show 1 more comment
This is the output of
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
Edit:
the output of
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]
boot apt grub2 kernel dpkg
New contributor
The root problem seems to be the line:libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
. Please edit your question to tell us a bit more about encryption, if any, in your setup.
– user535733
yesterday
@user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line.
– Fares Salem
yesterday
Can you executelocate libcrypto.so.1.0.0
and append the output to your question?
– Charles Green
yesterday
Also the output ofapt list libssl1*
– Charles Green
yesterday
It looks as though it is installed and in the right place. I would try to execute the commandsudo apt install --reinstall libssl1.0.0
to see if this fixes some odd linkage error.
– Charles Green
yesterday
|
show 1 more comment
This is the output of
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
Edit:
the output of
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]
boot apt grub2 kernel dpkg
New contributor
This is the output of
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
Edit:
the output of
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]
boot apt grub2 kernel dpkg
boot apt grub2 kernel dpkg
New contributor
New contributor
edited yesterday
Fares Salem
New contributor
asked yesterday
Fares SalemFares Salem
11
11
New contributor
New contributor
The root problem seems to be the line:libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
. Please edit your question to tell us a bit more about encryption, if any, in your setup.
– user535733
yesterday
@user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line.
– Fares Salem
yesterday
Can you executelocate libcrypto.so.1.0.0
and append the output to your question?
– Charles Green
yesterday
Also the output ofapt list libssl1*
– Charles Green
yesterday
It looks as though it is installed and in the right place. I would try to execute the commandsudo apt install --reinstall libssl1.0.0
to see if this fixes some odd linkage error.
– Charles Green
yesterday
|
show 1 more comment
The root problem seems to be the line:libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
. Please edit your question to tell us a bit more about encryption, if any, in your setup.
– user535733
yesterday
@user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line.
– Fares Salem
yesterday
Can you executelocate libcrypto.so.1.0.0
and append the output to your question?
– Charles Green
yesterday
Also the output ofapt list libssl1*
– Charles Green
yesterday
It looks as though it is installed and in the right place. I would try to execute the commandsudo apt install --reinstall libssl1.0.0
to see if this fixes some odd linkage error.
– Charles Green
yesterday
The root problem seems to be the line:
libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
. Please edit your question to tell us a bit more about encryption, if any, in your setup.– user535733
yesterday
The root problem seems to be the line:
libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
. Please edit your question to tell us a bit more about encryption, if any, in your setup.– user535733
yesterday
@user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line.
– Fares Salem
yesterday
@user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line.
– Fares Salem
yesterday
Can you execute
locate libcrypto.so.1.0.0
and append the output to your question?– Charles Green
yesterday
Can you execute
locate libcrypto.so.1.0.0
and append the output to your question?– Charles Green
yesterday
Also the output of
apt list libssl1*
– Charles Green
yesterday
Also the output of
apt list libssl1*
– Charles Green
yesterday
It looks as though it is installed and in the right place. I would try to execute the command
sudo apt install --reinstall libssl1.0.0
to see if this fixes some odd linkage error.– Charles Green
yesterday
It looks as though it is installed and in the right place. I would try to execute the command
sudo apt install --reinstall libssl1.0.0
to see if this fixes some odd linkage error.– Charles Green
yesterday
|
show 1 more comment
1 Answer
1
active
oldest
votes
From https://itsfoss.com/dpkg-returned-an-error-code-1/:
You should try to run
sudo apt update
and then try to install a new
package or upgrade after trying each of the methods below:
Reconfigure Package Database
The first method you can try is to reconfigure the package database.
Probably the database got corrupted while installing a package.
Reconfiguring often fixes the problem.
sudo dpkg --configure -a
Try removing the troublesome package
sudo apt remove
New contributor
1
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
1
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
non of these worked
– Fares Salem
yesterday
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Fares Salem is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116133%2fi-cant-install-any-packages-or-make-any-updates-18-04-im-trying-to-remove-old%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From https://itsfoss.com/dpkg-returned-an-error-code-1/:
You should try to run
sudo apt update
and then try to install a new
package or upgrade after trying each of the methods below:
Reconfigure Package Database
The first method you can try is to reconfigure the package database.
Probably the database got corrupted while installing a package.
Reconfiguring often fixes the problem.
sudo dpkg --configure -a
Try removing the troublesome package
sudo apt remove
New contributor
1
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
1
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
non of these worked
– Fares Salem
yesterday
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
add a comment |
From https://itsfoss.com/dpkg-returned-an-error-code-1/:
You should try to run
sudo apt update
and then try to install a new
package or upgrade after trying each of the methods below:
Reconfigure Package Database
The first method you can try is to reconfigure the package database.
Probably the database got corrupted while installing a package.
Reconfiguring often fixes the problem.
sudo dpkg --configure -a
Try removing the troublesome package
sudo apt remove
New contributor
1
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
1
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
non of these worked
– Fares Salem
yesterday
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
add a comment |
From https://itsfoss.com/dpkg-returned-an-error-code-1/:
You should try to run
sudo apt update
and then try to install a new
package or upgrade after trying each of the methods below:
Reconfigure Package Database
The first method you can try is to reconfigure the package database.
Probably the database got corrupted while installing a package.
Reconfiguring often fixes the problem.
sudo dpkg --configure -a
Try removing the troublesome package
sudo apt remove
New contributor
From https://itsfoss.com/dpkg-returned-an-error-code-1/:
You should try to run
sudo apt update
and then try to install a new
package or upgrade after trying each of the methods below:
Reconfigure Package Database
The first method you can try is to reconfigure the package database.
Probably the database got corrupted while installing a package.
Reconfiguring often fixes the problem.
sudo dpkg --configure -a
Try removing the troublesome package
sudo apt remove
New contributor
edited yesterday
terdon♦
65.9k12138221
65.9k12138221
New contributor
answered yesterday
Augusto TomásAugusto Tomás
11
11
New contributor
New contributor
1
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
1
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
non of these worked
– Fares Salem
yesterday
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
add a comment |
1
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
1
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
non of these worked
– Fares Salem
yesterday
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
1
1
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
The error seems to be 'file not found', not 'file corrupt'.
– user535733
yesterday
1
1
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
When reproducing content from somewhere else, you need to always put it in a quote block to show what is yours and what is being quoted.
– terdon♦
yesterday
non of these worked
– Fares Salem
yesterday
non of these worked
– Fares Salem
yesterday
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
Thank you, next time i will do it.
– Augusto Tomás
23 hours ago
add a comment |
Fares Salem is a new contributor. Be nice, and check out our Code of Conduct.
Fares Salem is a new contributor. Be nice, and check out our Code of Conduct.
Fares Salem is a new contributor. Be nice, and check out our Code of Conduct.
Fares Salem is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116133%2fi-cant-install-any-packages-or-make-any-updates-18-04-im-trying-to-remove-old%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The root problem seems to be the line:
libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
. Please edit your question to tell us a bit more about encryption, if any, in your setup.– user535733
yesterday
@user535733 It's just a regular upgrade for current packages, no encryption encountered, my current kernel is 4.15.0-39-generic and i'm trying to remove the old kernels to be able to install the 4.20 kernel and any other package as well, I don't know what is the exact problem with this line.
– Fares Salem
yesterday
Can you execute
locate libcrypto.so.1.0.0
and append the output to your question?– Charles Green
yesterday
Also the output of
apt list libssl1*
– Charles Green
yesterday
It looks as though it is installed and in the right place. I would try to execute the command
sudo apt install --reinstall libssl1.0.0
to see if this fixes some odd linkage error.– Charles Green
yesterday