M
Modular•13mo ago
Jack Clayton

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
Jack Clayton
Jack Clayton•13mo ago
First you need to fix your clock do:
sudo hwclock --hctosys
sudo hwclock --hctosys
Prathyyyyyyy
Prathyyyyyyy•13mo ago
@Jack Clayton still im having issues with installation
Jack Clayton
Jack Clayton•13mo ago
@Prathyyyyyyy can you post your error here?
Prathyyyyyyy
Prathyyyyyyy•13mo ago
@Jack Clayton
Jack Clayton
Jack Clayton•13mo ago
Just have a couple outdated PPA's there (unofficial packages), you can do:
sudo add-apt-repository --remove ppa:webupd8team/java
sudo add-apt-repository --remove ppa:nilarimogard/webupd8
sudo add-apt-repository --remove ppa:webupd8team/java
sudo add-apt-repository --remove ppa:nilarimogard/webupd8
Prathyyyyyyy
Prathyyyyyyy•13mo ago
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))
Prathyyyyyyy
Prathyyyyyyy•13mo ago
No description
Prathyyyyyyy
Prathyyyyyyy•13mo ago
No description
Prathyyyyyyy
Prathyyyyyyy•13mo ago
@Jack Clayton
Jack Clayton
Jack Clayton•13mo ago
@Prathyyyyyyy Try creating a venv first before installing:
python3 -m venv .env
source .env/bin/activate
python3 -m venv .env
source .env/bin/activate
Then run:
rm -r ~/.modular
modular clean
modular install mojo
rm -r ~/.modular
modular clean
modular install mojo
Prathyyyyyyy
Prathyyyyyyy•13mo ago
🔥 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
Prathyyyyyyy
Prathyyyyyyy•13mo ago
No description
Prathyyyyyyy
Prathyyyyyyy•13mo ago
and after this i gave source ~/.bashrc
ModularBot
ModularBot•13mo ago
Congrats @Prathyyyyyyy, you just advanced to level 2!
Want results from more Discord servers?
Add your server