I deleted lib32-ncurses, how do I fix it?
I deleted the lib32-ncurses manually from the /usr/lib folder (I know...)
I was having issues with a compiled PHP and libncursesw.so.5
It broke Arch. So I boot from my a live cd but if I try to, mounted the partition but when trying to chroot to the root mount at /mnt I get:
/bin/sh: error while loading shared libraries: libncurses2.so.6: cannot open shared object file: No such file or directory
arch-linux system-installation
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 2 more comments
I deleted the lib32-ncurses manually from the /usr/lib folder (I know...)
I was having issues with a compiled PHP and libncursesw.so.5
It broke Arch. So I boot from my a live cd but if I try to, mounted the partition but when trying to chroot to the root mount at /mnt I get:
/bin/sh: error while loading shared libraries: libncurses2.so.6: cannot open shared object file: No such file or directory
arch-linux system-installation
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
After booting from the livecd, trying copying its/usr/lib/libncurses2.so.6
into the mounted/usr/lib
, then seeing if that works. If it does, you probably want to reinstall the package just to be sure.
– Tom Hunt
Sep 28 '15 at 16:51
yeah,bash
needs all that jazz. symlink some other shell over/bin/sh
- likeln -sf /usr/lib/initcpio/busybox /bin/sh
or something.
– mikeserv
Sep 28 '15 at 16:51
@mikeserv Did it, but I'm getting the same error.
– ericgramirez
Sep 28 '15 at 17:03
2
well, if you did it from outside thechroot
then it probably wont be/
at the head of the path. Anyway, you can just use thepacman
-r
argument to install the package you need from without thechroot
as well.pacman -r /path/to/chroot -S ncurses --force
– mikeserv
Sep 28 '15 at 17:09
@TomHunt The issue is I have libncurses5 on the live CD
– ericgramirez
Sep 28 '15 at 18:38
|
show 2 more comments
I deleted the lib32-ncurses manually from the /usr/lib folder (I know...)
I was having issues with a compiled PHP and libncursesw.so.5
It broke Arch. So I boot from my a live cd but if I try to, mounted the partition but when trying to chroot to the root mount at /mnt I get:
/bin/sh: error while loading shared libraries: libncurses2.so.6: cannot open shared object file: No such file or directory
arch-linux system-installation
I deleted the lib32-ncurses manually from the /usr/lib folder (I know...)
I was having issues with a compiled PHP and libncursesw.so.5
It broke Arch. So I boot from my a live cd but if I try to, mounted the partition but when trying to chroot to the root mount at /mnt I get:
/bin/sh: error while loading shared libraries: libncurses2.so.6: cannot open shared object file: No such file or directory
arch-linux system-installation
arch-linux system-installation
edited Nov 14 '16 at 19:43
jasonwryan
49.3k14134184
49.3k14134184
asked Sep 28 '15 at 16:44
ericgramirezericgramirez
7718
7718
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
After booting from the livecd, trying copying its/usr/lib/libncurses2.so.6
into the mounted/usr/lib
, then seeing if that works. If it does, you probably want to reinstall the package just to be sure.
– Tom Hunt
Sep 28 '15 at 16:51
yeah,bash
needs all that jazz. symlink some other shell over/bin/sh
- likeln -sf /usr/lib/initcpio/busybox /bin/sh
or something.
– mikeserv
Sep 28 '15 at 16:51
@mikeserv Did it, but I'm getting the same error.
– ericgramirez
Sep 28 '15 at 17:03
2
well, if you did it from outside thechroot
then it probably wont be/
at the head of the path. Anyway, you can just use thepacman
-r
argument to install the package you need from without thechroot
as well.pacman -r /path/to/chroot -S ncurses --force
– mikeserv
Sep 28 '15 at 17:09
@TomHunt The issue is I have libncurses5 on the live CD
– ericgramirez
Sep 28 '15 at 18:38
|
show 2 more comments
1
After booting from the livecd, trying copying its/usr/lib/libncurses2.so.6
into the mounted/usr/lib
, then seeing if that works. If it does, you probably want to reinstall the package just to be sure.
– Tom Hunt
Sep 28 '15 at 16:51
yeah,bash
needs all that jazz. symlink some other shell over/bin/sh
- likeln -sf /usr/lib/initcpio/busybox /bin/sh
or something.
– mikeserv
Sep 28 '15 at 16:51
@mikeserv Did it, but I'm getting the same error.
– ericgramirez
Sep 28 '15 at 17:03
2
well, if you did it from outside thechroot
then it probably wont be/
at the head of the path. Anyway, you can just use thepacman
-r
argument to install the package you need from without thechroot
as well.pacman -r /path/to/chroot -S ncurses --force
– mikeserv
Sep 28 '15 at 17:09
@TomHunt The issue is I have libncurses5 on the live CD
– ericgramirez
Sep 28 '15 at 18:38
1
1
After booting from the livecd, trying copying its
/usr/lib/libncurses2.so.6
into the mounted /usr/lib
, then seeing if that works. If it does, you probably want to reinstall the package just to be sure.– Tom Hunt
Sep 28 '15 at 16:51
After booting from the livecd, trying copying its
/usr/lib/libncurses2.so.6
into the mounted /usr/lib
, then seeing if that works. If it does, you probably want to reinstall the package just to be sure.– Tom Hunt
Sep 28 '15 at 16:51
yeah,
bash
needs all that jazz. symlink some other shell over /bin/sh
- like ln -sf /usr/lib/initcpio/busybox /bin/sh
or something.– mikeserv
Sep 28 '15 at 16:51
yeah,
bash
needs all that jazz. symlink some other shell over /bin/sh
- like ln -sf /usr/lib/initcpio/busybox /bin/sh
or something.– mikeserv
Sep 28 '15 at 16:51
@mikeserv Did it, but I'm getting the same error.
– ericgramirez
Sep 28 '15 at 17:03
@mikeserv Did it, but I'm getting the same error.
– ericgramirez
Sep 28 '15 at 17:03
2
2
well, if you did it from outside the
chroot
then it probably wont be /
at the head of the path. Anyway, you can just use the pacman
-r
argument to install the package you need from without the chroot
as well. pacman -r /path/to/chroot -S ncurses --force
– mikeserv
Sep 28 '15 at 17:09
well, if you did it from outside the
chroot
then it probably wont be /
at the head of the path. Anyway, you can just use the pacman
-r
argument to install the package you need from without the chroot
as well. pacman -r /path/to/chroot -S ncurses --force
– mikeserv
Sep 28 '15 at 17:09
@TomHunt The issue is I have libncurses5 on the live CD
– ericgramirez
Sep 28 '15 at 18:38
@TomHunt The issue is I have libncurses5 on the live CD
– ericgramirez
Sep 28 '15 at 18:38
|
show 2 more comments
1 Answer
1
active
oldest
votes
You are going to need to boot from an Arch ISO somehow. After that, you can probably upgrade the kernel by following Option 2: Reinstall Kernel from the Arch Linux Wiki article, "Kernel Panics". That article includes doing a chroot
to the hard disk mounted by the ISO, so you can use pacman
on the latest kernel you've got in /var/cache/pacman/pkg/
. Look in that same directory for a version 5 ncurses package, and update it, too, while you're at it.
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
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%2funix.stackexchange.com%2fquestions%2f232574%2fi-deleted-lib32-ncurses-how-do-i-fix-it%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
You are going to need to boot from an Arch ISO somehow. After that, you can probably upgrade the kernel by following Option 2: Reinstall Kernel from the Arch Linux Wiki article, "Kernel Panics". That article includes doing a chroot
to the hard disk mounted by the ISO, so you can use pacman
on the latest kernel you've got in /var/cache/pacman/pkg/
. Look in that same directory for a version 5 ncurses package, and update it, too, while you're at it.
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
add a comment |
You are going to need to boot from an Arch ISO somehow. After that, you can probably upgrade the kernel by following Option 2: Reinstall Kernel from the Arch Linux Wiki article, "Kernel Panics". That article includes doing a chroot
to the hard disk mounted by the ISO, so you can use pacman
on the latest kernel you've got in /var/cache/pacman/pkg/
. Look in that same directory for a version 5 ncurses package, and update it, too, while you're at it.
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
add a comment |
You are going to need to boot from an Arch ISO somehow. After that, you can probably upgrade the kernel by following Option 2: Reinstall Kernel from the Arch Linux Wiki article, "Kernel Panics". That article includes doing a chroot
to the hard disk mounted by the ISO, so you can use pacman
on the latest kernel you've got in /var/cache/pacman/pkg/
. Look in that same directory for a version 5 ncurses package, and update it, too, while you're at it.
You are going to need to boot from an Arch ISO somehow. After that, you can probably upgrade the kernel by following Option 2: Reinstall Kernel from the Arch Linux Wiki article, "Kernel Panics". That article includes doing a chroot
to the hard disk mounted by the ISO, so you can use pacman
on the latest kernel you've got in /var/cache/pacman/pkg/
. Look in that same directory for a version 5 ncurses package, and update it, too, while you're at it.
answered Sep 28 '15 at 20:22
Bruce EdigerBruce Ediger
34.8k566119
34.8k566119
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
add a comment |
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
Sure, I'm following that guide. But I get the same error message after typing "arch-chroot /mnt /bin/bash" but with a different libncurses.
– ericgramirez
Sep 28 '15 at 23:07
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f232574%2fi-deleted-lib32-ncurses-how-do-i-fix-it%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
1
After booting from the livecd, trying copying its
/usr/lib/libncurses2.so.6
into the mounted/usr/lib
, then seeing if that works. If it does, you probably want to reinstall the package just to be sure.– Tom Hunt
Sep 28 '15 at 16:51
yeah,
bash
needs all that jazz. symlink some other shell over/bin/sh
- likeln -sf /usr/lib/initcpio/busybox /bin/sh
or something.– mikeserv
Sep 28 '15 at 16:51
@mikeserv Did it, but I'm getting the same error.
– ericgramirez
Sep 28 '15 at 17:03
2
well, if you did it from outside the
chroot
then it probably wont be/
at the head of the path. Anyway, you can just use thepacman
-r
argument to install the package you need from without thechroot
as well.pacman -r /path/to/chroot -S ncurses --force
– mikeserv
Sep 28 '15 at 17:09
@TomHunt The issue is I have libncurses5 on the live CD
– ericgramirez
Sep 28 '15 at 18:38