apt install errors
I'm getting an error when trying to install apt:
OK: Checking for required executable 'curl' ...
OK: Checking for required executable 'apt-get' ...
OK: Detecting your OS distribution and release using system methods ...
^^^^: ... Detected/provided for your OS/distribution, version and architecture:
>>>>:
>>>>: ... distro=ubuntu version=22.04 codename=jammy arch=x86_64
>>>>:
OK: Checking for apt dependency 'apt-transport-https' ...
OK: Checking for apt dependency 'ca-certificates' ...
OK: Checking for apt dependency 'gnupg' ...
OK: Checking for apt signed-by key support ...
OK: Importing 'modular/installer' repository GPG keys ...
OK: Checking if upstream install config is OK ...
OK: Installing 'modular/installer' repository via apt ...
NOPE: Updating apt repository metadata cache ...
Failed to update via apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:4 https://dl.modular.com/public/installer/deb/ubuntu jammy InRelease [5076 B]
Hit:5 https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy InRelease
Hit:6 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Reading package lists...
E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 1h 47min 56s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease is not valid yet (invalid for another 34min 30s). Updates for this repository will not be applied.
W: https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 1h 47min 23s). Updates for this repository will not be applied.
^^^^: ... Failed to update via apt-get update - Context above.
!!!!: Oh no, your setup failed! 😦 ... But we might be able to help. 🙂
!!!!:
!!!!: You can contact Modular for further assistance.
!!!!
38 Replies
First you need to fix your clock do:
@Jack Clayton still im having issues with installation
@Prathyyyyyyy can you post your error here?
@Jack Clayton
Just have a couple outdated PPA's there (unofficial packages), you can do:
let me try and update you and thanks for replying @Jack Clayton
@Jack Clayton modular cpi has been installed and when i give modular install mojo
i face this issue
modular install mojo
Found release for https://packages.modular.com/mojo @ 0.2.1, installing to /home/prathy/.modular/pkg/packages.modular.com_mojo
Downloads complete, setting configs...
Configs complete, running post-install hooks...
Collecting find_libpython==0.3.0 (from -r /home/prathy/.modular/pkg/packages.modular.com_mojo/scripts/post-install/requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/7a/13/4a99ff41ae6a47ccc45675bd312a238b9606b118a9317c79a4277cd2a00a/find_libpython-0.3.0-py3-none-any.whl
Collecting papermill==2.4.0 (from -r /home/prathy/.modular/pkg/packages.modular.com_mojo/scripts/post-install/requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/a2/e2/2f02a7aa739b4a03d20032d2f711e9eb0fd52202debd6df54518eab4403e/papermill-2.4.0-py3-none-any.whl
Collecting jupyter_client>=8.3.0 (from -r /home/prathy/.modular/pkg/packages.modular.com_mojo/scripts/post-install/requirements.txt (line 3))
Could not find a version that satisfies the requirement jupyter_client>=8.3.0 (from -r /home/prathy/.modular/pkg/packages.modular.com_mojo/scripts/post-install/requirements.txt (line 3)) (from versions: 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.3.0, 4.4.0, 5.0.0, 5.0.1, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.4, 5.3.5, 6.0.0, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.5, 6.1.6, 6.1.7, 6.1.8, 6.1.9, 6.1.10, 6.1.11, 6.1.12, 6.1.13, 6.2.0, 7.0.0a0, 7.0.0a1, 7.0.0rc0, 7.0.0rc1, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.6, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 7.2.1, 7.2.2, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.4.6, 7.4.7, 7.4.8, 7.4.9, 8.0.0a0, 8.0.0a1)
No matching distribution found for jupyter_client>=8.3.0 (from -r /home/prathy/.modular/pkg/packages.modular.com_mojo/scripts/post-install/requirements.txt (line 3))
@Jack Clayton
@Prathyyyyyyy Try creating a venv first before installing:
Then run:
🔥 Mojo installed! 🔥
Now run the following commands if you are using bash:
echo 'export MODULAR_HOME="/root/.modular"' >> ~/.bashrc
echo 'export PATH="/root/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
If you are using ZSH, run the following commands:
echo 'export MODULAR_HOME="/root/.modular"' >> ~/.zshrc
echo 'export PATH="/root/.modular/pkg/packages.modular.com_mojo/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
so i did sudo nano ~/.bashrc and
and after this i gave source ~/.bashrc
Congrats @Prathyyyyyyy, you just advanced to level 2!
and i get this
@Prathyyyyyyy can you show me:
sorry @Prathyyyyyyy wrong path, try:
Congrats @Jack Clayton, you just advanced to level 10!
for your referrence
im pretty sure that I have not mentioned wrong path in .bashrc
@Jack Clayton
@Prathyyyyyyy what's in:
?
no such file or directory
does installation was this difficult for you!
and when i do sudo -i
it works fine
Oh ok thanks, it was installed into your root user. If you want you can uninstall:
And then install again without using sudo following the instructions at https://developer.modular.com/download
should i do this inside root !
I wouldn't
okay
let me try and reach back to you and thanks for being patience as im new to ubuntu
No worries
installed mojo :mojo:
curl https://get.modular.com | MODULAR_AUTH=mut_9f1d5c67879a492698e8059ed47c068d sh -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3176 100 3176 0 0 10813 0 --:-
E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 5h 6min 1s). Updates for this repository will not be applied.
^^^^: ... Failed to update via apt-get update - Context above.
!!!!: Oh no, your setup failed! 😦 ... But we might be able to help. 🙂
!!!!:
!!!!: You can contact Modular for further assistance.
!!!!:
I got this first error : )
how can i solve this
r u dual booting or have a skewed machine time with server clock? this is likely not a modular error, its generic if the hwclock is out of sync.
Did you try: