Score:2

Failed to download libncurses5

za flag

I can't install ncurses library on my computer. When I compile it with make , I get a fatal error n.curses.h: No such file or directory.

I tried to install it via terminal, however I didn't succeed. I've got this response: sudo apt-get install libncurses5 libncurses5:i386

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libncurses5
E: Unable to locate package libncurses5:i386

I also tried to fix my source.list since I used: sudo tee /etc/apt/sources.list

However, it deleted everything on the file. Searching on web I found this:

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

(...)

Copied and pasted on my source.list and placed '#' where it says deb or deb-src. Now, I can't download any software via terminal, can you help me?


uname -a; arch

Linux muca 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
x86_64
N0rbert avatar
zw flag
What is your CPU architecture? Please share output of `uname -a; arch` .
Samuel Villar avatar
za flag
Hey, that's what I've got when I do that command you told me to do: Linux muca 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux x86_64
Score:3
zw flag

So you are running 64-bit Ubuntu 20.04 LTS. You can restore default APT repositories using the following single long command:

cat <<EOF | sudo tee /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu/ focal-security main universe multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ focal-backports main universe multiverse restricted

deb-src http://archive.ubuntu.com/ubuntu/ focal main universe multiverse restricted
deb-src http://security.ubuntu.com/ubuntu/ focal-security main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main universe multiverse restricted
EOF

add 32-bit i386 architecture, update package lists using and install needed packages

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5 libncurses5:i386
Samuel Villar avatar
za flag
Thank you! But in exchange it sent me this after sudo apt-get update: Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease Temporary failure resolving 'security.ubuntu.com' Err:2 http://archive.ubuntu.com/ubuntu focal InRelease (...) It 'fetched' all the files. W: Some index files failed to download. They have been ignored, or old ones used instead.
N0rbert avatar
zw flag
Do you have internet on this computer?
Samuel Villar avatar
za flag
It also isn't downloading or installing any software. Goddamn, it has been a lot of time I've been trying to solve this problem
Samuel Villar avatar
za flag
I have internet on my computer, but on the virtual machine I don't.
N0rbert avatar
zw flag
Can you ping APT archive servers from VM by `ping -c3 archive.ubuntu.com` and `ping -c3 security.ubuntu.com`. For correct network configuration for VirtualBox follow https://www.virtualbox.org/manual/ch06.html .
Samuel Villar avatar
za flag
ping -c3 archive.ubuntu.com ping: archive.ubuntu.com: Temporary failure in name resolution ping -c3 security.ubuntu.com ping: security.ubuntu.com: Temporary failure in name resolution. Alright, I'll try to read and give it a shot. Thanks man.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.