ersilia
ersilia copied to clipboard
đź“‘ Feature Request: Improve Ersilia Documentation
Is your feature request related to a problem? Please describe.
Ersilia's Documentation could cover more comprehensively the installation issues users find, for example when installing the WSL if they are Windows users
Describe the solution you'd like.
The different contributors that have struggled by one reason or another to install ersilia should add a comment in this issue with the following structure:
Operating System: #all you can gather about your system if it is a windows, which windows and which wsl are you using Conda Version: Python Version: Issue: #detailed explanation of the problem you encountered and how did you realise it was this problem (was it thanks to an error log, was it a system notification...) #exact error notification that you got How did you solve it: #how did you solve the issue explained What would you like to see in the Documentation: #which section of the documentation is more adequate to host this kind of issue #exact sentences that you would write in the docs to help the next user What would you like Ersilia to throw back when this issue is encountered: #the error message that should be printed in the CLI
Please attach any error log files that you got.
Describe alternatives you've considered
No response
Additional context.
No response
This is an example, based on #277, #323 and #340
Operating System: Linux Ubuntu 20.4 LTS Conda Version: conda 4.11.0 (Anaconda 3) Python Version: Python 3.9.7 Issue: Git - LFS was not installed and therefore the model could not be fetched from the Git Repository At fetching time I get an "EmptyErrorOutput". In the error log I can see the following message git: 'lfs' is not a git command. See 'git --help'. (see attached log)
How did you solve it:
I installed git-lfs using the command
git-lfs install
and re-started the system
What would you like to see in the Documentation:
In this case, the Git LFS requirement is already stated in the pre-requisites section. I would add a line that specifies the following
"Upon installation of git-lfs through conda, you may need to restart the system so that the git-lfs package is recognised"
What would you like Ersilia to throw back when this issue is encountered: Warning: GIT-LFS is not installed
(I am not attaching any error files as this is only an example)
Operating system: Linux Ubuntu 22.4
Conda Version: Conda 22.9.0
Python version: Python 3.10.6
Issue:
The Input file was not in my working directory and I did not specify a path to the file in my predict command
I got a TypeError
when I ran the predict command. I have attached an error log below.
TypeError.log
How did you solve it: I move the input life into my current working directory, then ran the command again and it was a success!!.
What would you like to see in the Documentation:
I noticed that there were a considerable amount of TypeError
bug issues that were initiated by contributors.
And this error was always as a result of the predict command not reading the input file properly and this can be as a result of.
- Using an incorrect input file name in your predict command.
- Not appending
.csv
in your file name. - Not specifying the correct path to the location of your input file.
Based on this, I would suggest adding a line in the contribution guidelines that specifies the following: "When running the predict command, make sure you specify a path to the prepared list of molecules you downloaded or you could move it to your Ersilia directory.
What would you like Ersilia to throw back when this issue is encountered: Warning: FileNotFoundError
Operating System:
- Windows 10
- Ubuntu 20.04
Conda Version:
- 22.9.0
Python Version:
- version 3.9.12
Issue:
I had an issue running conda activate ersilia
at Pre-requisite 5: The Isaura data lake in the Ersilia book.
#exact error notification that you got I received an ersilia not found error in the terminal. I figured out that I had to go through the step of installing ersilia first before isaura.
What would you like to see in the Documentation: I would like the Pre-requisite 5: The Isaura data lake to be placed after 2.2 Install Ersilia.
#which section of the documentation is more adequate to host this kind of issue I would like this to be placed in the installation section
Operating system: Windows 10 Pro (WSL installed with Ubuntu 18.04)
Conda Version: Conda 22.9.0
Python version: Python 3.7.13
Issue:
While trying to install ersilia model hub, i was getting error continuously i.e.
Could not find a version that satisfies the requirement h5py==3.7.0 (from isaura) (from versions: none)
ERROR: No matching distribution found for h5py==3.7.0.
Warning: There was an error checking the latest version of pip
I have attached screenshot of an error below.
How did you solve it:
Do this inside the ersilia conda environment,
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
pip3 --version
Deactivate the ersilia conda environment &
Rerun the ubuntu terminal.
What would you like to see in the Documentation:
I noticed that few of other contributors also face this error also while installation with different packages too e.g.
ERROR: Could not find a version that satisfies the requirement bentoml==0.11.0 (from ersilia) (from versions: none)
ERROR: No matching distribution found for bentoml==0.11.0. (instead of h5py) ,
Warning: There was an error checking the latest version of pip
This error occurs when pip is not installed properly inside the conda environment due to some reasons. so to avoid that error one should install the pip again inside the conda environment.
Based on this, I would suggest adding a line that specifies the following:
While installation of ersilia model hub, when someone get this error especially warning of "There was an error checking the latest version of pip"one should check the pip version installed in the conda environment or reinstalled the pip package again.
What would you like Ersilia to throw back when this issue is encountered: I would like this to be placed in the installation section
Operating system: Windows 10 Pro (WSL installed with Ubuntu 18.04)
Conda Version: Conda 22.9.0
Python version: Python 3.7.13
Issue:
When i tried fetching ersilia model then somewhere while installing dependancies of that model my windows crashes. Although when i run fetch api everything was working fine and dependencies were installing too but suddenly my windows crashes and through me an error, here's the screenshot of error:
How did you solve it: This happens because of Antivirus that blocks the WSL to install some dependencies in ubuntu folder created in your windows. So, i resolved this issue by uninstalling the Antivirus for time being and everything works fine. But you can also put the WSL files in Antivirus exception list to avoid windows to crash.
What would you like to see in the Documentation: Based on this, I would suggest adding a line that specifies the following: If you are a window's user using WSL and encounter windows crashing while running fetch api then one should try to either put the WSL files in exception list of their Antivirus or completey delete it.
What would you like Ersilia to throw back when this issue is encountered: I would like this to be placed in the "Windows User section" who are using WSL for Ersilia model hub
Operating System:
- Windows 10
- Brave browser
Conda Version:
- 22.9.0
Python Version:
- version 3.9.12
Issue:
I encountered a key error on colab, whilst converting the model prediction output - eos6o0z.csv to a smiles list.
How did you solve it:
It was referencing CAN_SMILES which wasn't present in the input file. So I changed the smiles = df["CAN_SMILES"].tolist()
to smiles = df["can_smiles"].tolist()
What would you like to see in the Documentation: I would like the template to be adjusted to reflect the correct column name.
What would you like Ersilia to throw back when this issue is encountered: Invalid Column name
link to issue
Operating System:
- Windows 10
Conda Version:
- 22.9.0
Python Version:
- version 3.9.12
Issue: I encountered a type error whilst attempting to calculate the molecular weight of the test model eos3b5e.
TypeError: No registered converter was able to produce a C++ rvalue of type std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > from this Python object of type NoneType
How did you solve it:
I adjusted the input from the model name to the single molecule of 6 carbons
ersilia -v api calculate -i "CCCCCC"
What would you like to see in the Documentation: I would like the instruction for the test model to reflect the carbon input instead of the model name.
link to issue
Operating System: Windows 10 Pro (WSL installed with Ubuntu 22.04)
Conda Version: conda 4.11.0 (miniconda 3)
Python Version: Python 3.9.9
Issue: ersilia: command not found
I had closed the terminal previously and picked off from where I left after reopening it. No ersilia command worked after I went back to the directory path.
How did you solve it: I activated the ersilia environment using the command: conda activate ersilia
What would you like to see in the Documentation: It was stated in the installation guide to set up a conda enivronment and I neglected to do that. However, as a reminder I would appreciate if it could state that this was a requirement every time, for the sake of newcomers.
What would you like Ersilia to throw back when this issue is encountered: Warning: Ersilia is not activated! Try: conda activate ersilia
Operating System: Windows 10 Pro (WSL installed with Ubuntu 22.04)
Conda Version: conda 4.11.0 (miniconda 3)
Python Version: Python 3.9.9
Issue: While trying to install WSL on my Windows 10 pro machine with the command "wsl --install", I received an error message: WslRegisterDistribution failed with error: 0x80370102 Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
How did you solve it: First, I checked the requirements for installing wsl on my computer and saw this: Hyper-V Visualisation enabled in firmware No
This indicated that Hardware visualisation was disabled in my computer. Then I tried a series of methods to turn it on and succeeded by restarting my computer and booting it in BIOS mode. After that, I enabled "Virtualisation technology" in the start up options and rebooted my computer.
What would you like to see in the Documentation: I would like a hint section that states: "If you encounter Error: 0x80370102 while trying to install wsl, it is likely that your computer does not meet the requirements for the installation. Try enabling Hardware Virtualisation on your system."
Operating System:
- Windows 10
- Ubuntu 20.04
Conda Version:
- 22.9.0
Python Version:
- version 3.9.12
Issue:
I experienced an EmptyOutputError
while fetching models with the fetch command
ersilia -v fetch eos157v
How did I solve this. I reported the bug and the mentors rectified the problem. I simply had to pull the latest changes from the repo and execute the fetch command again.
What would you like to see in the Documentation
I think the emptyoutputerror
message would suffice, however I would like an additional message that indicates that this error is not a user related error
link to issue
Operating System:
- Windows 10
- Brave browser 1.44.105
Conda Version:
- 22.9.0
Python Version:
- version 3.9.12
Issue:
I received this error while fetching model eos85a3 on collab
Exception: eos85a3 environment does not exist
.
How did you solve it: I reconnected the runtime environment and that resolved the issue.
What would you like Ersilia to throw back when this issue is encountered: Environment does not exist due to a runtime error. Reconnect google colab.
link to issue
Operating System:
- Windows 10
- Brave browser 1.44.105
Conda Version:
- 22.9.0
Python Version:
- version 3.9.12
Issue/Improvement: This isn't really a bug I encountered. It's more like a feature which would enhance usability of the colab environment.
A a first time user to google collab, I struggled with identifying the correct path for the input file. I eventually figured it out but I noticed that several contributors on the workspace encountered the same issue.
How would a user solve it:
- [x] Download the input file to your local system.
- [x] Connect to Google drive
- [x] Click on the "files" icon on the navigation bar, to the right of the collab window (it's the last icon)
- [x] Identify the folder you intend to store the input file.
- [x] Click on the three dots to the left of the folder name and select "Upload".
- [x] Navigate to and select the downloaded input file.
- [x] Once uploaded, right click and select "copy path".
- [x] Paste this path in the string to specify the path to the input file on colab.
What would you like to see in the Documentation: A section on testing the models using colab.
What would you like Ersilia to throw back when this issue is encountered: Follow the steps to upload your input file
Operating system: Ubuntu 18.04.3 LTS
Conda Version: conda 4.12.0
Python version: Python 3.9.12
Issue: I encountered a TypeError while predicting the eml_canonical.csv.
How did you solve it: I mentioned the exact path of the input file in the predict command and executed the command. It ran successfully.
What would you like to see in the Documentation: As new contributors or people who are just starting out with open-source contributions and CLI, in general, might face this issue where predict command fails to read the input file.
I would suggest adding a precautionary statement in the documentation, that specifies the TypeError that can occur due to the incorrect file path/format.
This can be similar to the already present precautionary statement in the ersilia's documentation regarding the available file formats.
What would you like Ersilia to throw back when this issue is encountered:
Warning: FileDoesNotExist
https://github.com/ersilia-os/ersilia/issues/342
Operating System: Linux 19 Conda Version: conda 22.9.0 Python Version: Python 3.9.13
Issue: Repeated output of "status 500" error code. During prediction using a model, the process seems to get stuck in a loop and repeatedly outputs "status 500" error code: see #342.
How did you solve it:
- Run prediction for one molecule
- If prediction works for one molecule, run prediction for three molecules
- If prediction for three molecule works, then run prediction for the input file containing all your molecules
What would you like Ersilia to throw back when this issue is encountered:
- A message such as:
Try running prediction for one molecule only and see if prediction works. If prediction works for one molecule but failed with input file containing all (many) molecules, try reducing molecules contained in your input file.
Operating System: 
Linux Ubuntu 20.4.1 LTS

Conda Version:
 conda 22.9.0 

Python Version:
 Python 3.9.12

Issue:
 My windows crashes and restarted, stopping all active processes whenever i fetch the ersilia model.
How did you solve it:
 It turned out that systemd-oomd (a userspace out-of-memory (OOM) killer) was killing my applications whenever I was running low on swap space.
You can run the following command to see if it is the case for you as well:
journalctl -u systemd-oomd
Two options:
-
Disable systemd-oomd:
systemctl disable --now systemd-oomd
-
Increase swap size (recommended).
Operating System:
 Linux Ubuntu 20.4.1 LTS

Conda Version: 
conda 22.9.0 

Python Version:
 Python 3.9.12
ISSUE ENCOUNTERED:
Whenever I tried fetching my model, I got this message
/usr/lib/python2.7/site-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.25.2)
and chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
HOW TO FIX:
You can fix this problem with;

pip install --upgrade requests==2.20.1
If you see version incompatible message like following, you should try other versions. All versions are: here
If that doesnt work, you can try removing docker compose;

sudo apt-get remove docker-compose
and installing:
sudo curl -L
The versions are here
"https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname-s)-$(uname-m)"-o/usr/local/bin/docker-compose
If that doesnt work, try downloading docker-compose directly;

sudo curl -L
"https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname-s)-$(uname-m)"-o/usr/bin/docker-compose
Then adding execution capability to the file by;
sudo chmod +x /usr/bin/docker-compose
I am sure this fixes your issues.
Operating System:
 Ubuntu 20.04.1 LTS
Conda Version: 
conda 22.9.0 

Python Version:
 Python 3.9.12
The Issue:
Issue #349
I got an Error .CSV not found
while predicting my models using the downloaded drive file “eml_canonical.csv”
How did you solve it: I found out that I didn’t add the .csv to the input file in my predict command, So I fixed that by correcting the name of the input file from “eml_canonical” to “eml_canonical.csv” in the predict command and run it again. Then it worked and I continued fetching using the right commands.
ersilia -v fetch eos7w6n
ersilia -v serve eos7w6n
ersilia -v api predict -i eml_canonical -o eos7w6n
.csv
What would you like to see in the Documentation: For individuals who could confront this issue where the command does not read the file I will recommend adding a prudent assertion in the documentation, that determines the possible problem that can happen because of the erroneous file type.
What would you like Ersilia to throw back when this issue is encountered: Error: Try running prediction using the correct file name/format.
Operating Environment Google Colab
Conda Version: Conda 4.2.0
Python version: Python 3.7.13
Issue:
It was observed that the fetching of a new model immediately after successfully running another model on google colab raises the error Exception: (model name) environment does not exist.
This would imply that the current working session has to be terminated and Ersilia Re-installed on Google Collab for every Model Instance.
How did you solve it:
Seeing that the model ran successfully with the same block of codes on a new notebook that was created , I figured the issue might stem from the open sessions.
Disconnecting and deleting runtime will fix this issue.
What would you like to see in the Documentation:
While this might be a temporary Bugfix, I might suggest adding this script to terminate the session at the end of the lines of code on google colab.
from google.colab import runtime
runtime.unassign()
Operating Environment Google Colab
Python version: 3.7.15
Issue: It was observed that while making predictions using predict API on CLI using an input file, we do not get a message indicating the total time taken to make predictions as we use to get while fetching the model. Even in the colab template, we do not get any printed messages regarding the total time taken by the model to predict.
How did you solve it: In CLI, we can note the start time of the log and end time, to calculate the time taken in prediction. In google colab, we can check the time taken by the cell to execute the predict command.
Another approach that I use for better readability is using the time module in python:
from ersilia import ErsiliaModel import time model = ErsiliaModel("eos2thm") model.serve() begin = time.time() output = model.predict(input=smiles, output="pandas") end = time.time() print(end - begin) model.close()
What would you like to see in the Documentation:
We can try to add this functionality in the code itself, to produce the total prediction time taken by the model. In the documentation, we can edit the collab template for better readability.
Operating Environment Windows 10 Ubuntu 18.04.5
Conda Version 22.9.0
python version 3.7.13
Issue
After installing ersilia model hub, ersilia --help threw an error which indicates that ersilia was not properly installed, the error is a ContextualVersionConflict which arose because the packages needed to run ersilia are not the versions required, in other words are not available.
How did you solve it I started the installation from the beginning and ensure no step was missed and then in addition ran the following comands; sudo apt-get update, sudo apt-get upgrade, sudo apt-install python3-pip pip3 --version; to check its the latest version and then I reran the terminal
What would you like to see in the Documentation I would love to see that pip should be up to date to ensure there is no version conflict while running ersilia
What would you like Ersilia to throw back when this issue is encountered Error: ContextualVersionConflict(Ensure pip is up to date)
Operating System: Linux Ubuntu 20.4 LTS Conda Version: conda 4.11.0 (Anaconda 3) Python Version: Python 3.9.12
Issue: Ubuntu was not able to work after WSL installation in Windows 10. This is because Hyper V a virtualization package does not come preinstalled in windows 10 Home and Virtualization was disabled in BIOS.
How did you solve it: Enabled Virtualization in BIOS googled and installed Hyper V re-started the system
What would you like to see in the Documentation: A section showing how the issue can be resolved in the installation documentation
What would you like Ersilia to throw back when this issue is encountered: Warning: Virtualization is not enabled check
Additional information for further guidance. https://www.itechtics.com/enable-hyper-v-windows-10-home/
Operating System: Ubuntu 20.4 LTS Conda Version: conda 22.9.0(Anaconda 3) Python Version: Python 3.7.13
Issue: When I fetch a model it hosts an error in the log: git: 'lfs' is not a git command. See 'git --help'. (see attached log) eos526j_fetch_5.log Despite following the installation steps and reinstalling everything, the error still persists, as described in the bug #376
How did you solve it: sudo apt install git-lfs git-lfs install and re-started the system
What would you like to see in the Documentation:
I would like another option to install git lfs in the part of prerequisite 4: Git LFS. I would add a new line that specifies :" This can also be installed like this: sudo apt install git-lfs. Restart the system, verify that git-lfs is installed with following command: git-lfs --version.
What would you like Ersilia to throw back when this issue is encountered: Error: GIT-LFS is not installed
Operating System: Ubuntu 20.4 LTS Conda Version: conda 22.9.0(Anaconda 3) Python Version: Python 3.7.13
Issue: When trying to fetch a model I got this error: TypeError: 'NoneType' object is not subscriptable. Reviewing the log I found that an ErrorException had been generated
In the previous line you can see that the download of torch was not completed since the system storage was too full to continue downloading torch.
How did you solve it: As I use an Ubuntu running on a virtual box machine, I increased the storage size of my machine, this was done in the virtual box configuration. After booting Ubuntu, since the sda partition was not the right size, I resized the partition to the size of the disk. I restarted the system and I already had the space I needed free.
What would you like to see in the Documentation: Specify the system requirements, such as minimum disk storage and minimum ram memory for fetch serve and predict the models.
What would you like Ersilia to throw back when this issue is encountered: In this case I would like to see the following in the error description: Error: torch did not complete its download, please check if you have enough space on your system." Other option: Error: Download not complete .Please check your system disk space. my.log
Operating System:
Windows 11 - Linux Ubuntu 20.4 LTS
Conda Version:
conda 22.9.0 (Miniconda)
Python Version:
Python 3.7.13
Issue/Improvement:
This is a feature in colab to enhance the user experience. While using the model, Google colab has a timestamp feature that records the duration of time for each cell code run. This could be used to record fetch and predict time as calculating the time code might come up with errors.
How did you solve it:
Simply enable the status bar feature at the lower part of the colab page to see the duration of time for the process to run. This changes for each code cell. Also, the log output in colab actually state the duration which should be taken into account.
Screenshot
What would you like to see in the Documentation:
This a reminder to check the status bar for Fetch time and predict time.
What would you like Ersilia to throw back when this issue is encountered:
This is not an issue to be precise. However, after the model successfully fetches or predicts, I'd like ersilia to throwback the check status bar for the duration of the process
after the model fetched succesfully
.
Operating System:
Windows 11 - Linux Ubuntu 20.4 LTS
Conda Version:
conda 22.9.0 (Miniconda)
Python Version:
Python 3.7.13
Issue/Improvement:
While installing the ersilia python package by running the clone command git clone https://github.com/ersilia-os/ersilia.git
to clone the ersilia repository to my local machine.
The following error showed:
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly before end of the underlying stream error: 2427 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output
see issue #296
How did you solve it:
I simply noticed I was running the command in a different Operating System as opposed to the OS compatible with Ersilia which is WSL for windows. I changed to ubuntu to rerun the command once again and it worked.
Screenshot
Error:
Solution
What would you like to see in the Documentation:
A reminder to always run the ersilia code in a Linux environment for Windows users, a step-by-step guide to enable WSL on windows or an additional link for the procedure. Also, an improved feature for ersilia to be able to run on windows.
What would you like Ersilia to throw back when this issue is encountered:
OS:Error, Verify OS
to tell users they might be running their commands in the wrong environment.
Operating System:
Windows 11 - Linux Ubuntu 20.4 LTS
Conda Version:
conda 22.9.0 (Miniconda)
Python Version:
Python 3.7.13
Issue/Improvement:
While fetching the model in Colab, it returned an error Exception: Download from ersilia-os/eos3d3r did not work
when it's supposed to fetch succesfully.
How did you solve it:
I figured that there was an internet break along the line and increased the broadband for my wifi to avoid an internet break. I also deleted and disconnect runtime before running again.
What would you like to see in the Documentation:
Ersilia works error freely while connected to the Internet
What would you like Ersilia to throw back when this issue is encountered:
Internet connection error: Make sure you are connected to internet
Operating System:
Windows 11 - Linux Ubuntu 20.4 LTS
Conda Version:
conda 22.9.0 (Miniconda)
Python Version:
Python 3.7.13
Issue/Improvement:
While installing ersilia using the pip install -e,
it returned a no matching distribution
.
How did you solve it:
I figured that there was an internet break along the line and increased the broadband for my wifi to avoid an internet break. I re-activated the ersilia environment in my terminal.
What would you like to see in the Documentation:
Ersilia works error freely while connected to the Internet. I'd like to state that this error persists and sometimes it's not due to an internet problem. Ersilia's debug feature should be able to classify this error as either an internet error or not. An internet breakout could occur while downloading some packages and it could be that the version the model is downloading is not compatible. However, these scenarios return the same error message and make it not so easy to debug.
What would you like Ersilia to throw back when this issue is encountered:
Due to an internet error: Internet connection error: Make sure you are connected to the internet
Due to package incompatibility: contradicting package version
. Suggest updating of packages.
Operating System:
 Linux Ubuntu 20.4 LTS

Conda Version:
 conda 22.9.0 

Python Version: 
Python 3.9.12

Issue:
 When I was installing some new packages (actually after trying to install build-essential), I got the error,
Package installation fails with 404 errors.
Here is the error
$ sudo apt install build-essential Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-9-dev libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make Suggested packages: cpp-doc gcc-9-locales debian-keyring g++-multilib g++-9-multilib gcc-9-doc gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-9-multilib glibc-doc bzr libstdc++-9-doc make-doc The following NEW packages will be installed: build-essential cpp cpp-9 dpkg-dev fakeroot g++ g++-9 gcc gcc-9 gcc-9-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan5 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-9-dev libisl22 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev make 0 upgraded, 33 newly installed, 0 to remove and 33 not upgraded. Need to get 1096 kB/35.2 MB of archives. After this operation, 157 MB of additional disk space will be used. Do you want to continue? [Y/n] y Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-31.35 Err:1 http://security.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-31.35 404 Not Found [IP: 91.189.88.142 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_5.4.0-31.35_amd64.deb 404 Not Found [IP: 91.189.88.142 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The important bit:
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_5.4.0-31.35_amd64.deb 404 Not Found [IP: 91.189.88.142 80]
Running with --fix-missing
as suggested in the error message and a few blog posts gave the same error.
sudo apt-get update
didn't work either:
$ sudo apt-get update --fix-missing && apt-get install gcc Hit:1 https://dl.yarnpkg.com/debian stable InRelease Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease Hit:3 https://deb.nodesource.com/node_12.x focal InRelease Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB] Reading package lists... Done E: Release file for http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 10d 6h 3min 42s). Updates for this repository will not be applied. E: Release file for http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 10d 6h 3min 50s). Updates for this repository will not be applied. E: Release file for http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease is not valid yet (invalid for another 10d 6h 4min 14s). Updates for this repository will not be applied.
How did you solve it:
The issue was that my clock was out of sync with the Windows host (I don't know why).
So I used this code;
$ sudo hwclock --hctosys
After this,
$ sudo apt update
ran happily, as did $ sudo apt install build-essential
.
Thanks for all the contributions, you can keep adding them in this issue! Meanwhile we will start collecting the errors into a comprehensive documentation, separated by different issue types.
@zheeburg has offered to start with the documentation around installing the WSL. I suggest @zheeburg you prepare a GDocs and share it here so people can add comments and suggestions. Once the doc is finished we will incorporate it in the Ersilia Documentation
Thanks for all the contributions, you can keep adding them in this issue! Meanwhile we will start collecting the errors into a comprehensive documentation, separated by different issue types.
@zheeburg has offered to start with the documentation around installing the WSL. I suggest @zheeburg you prepare a GDocs and share it here so people can add comments and suggestions. Once the doc is finished we will incorporate it in the Ersilia Documentation
Okay Sure, Thanks I will do that now.