[OPEN] Oh-My-Zsh can't update

First check the forums - Do not know where to put it then put it here
Post Reply
johnpiers
recruit crewman
Posts: 2
Joined: Tue Mar 30, 2021 7:56 pm

[OPEN] Oh-My-Zsh can't update

Post by johnpiers »

ArcoLinuxB Gnome Desktop:

Hi all, this is my first post here. I looked through as much as I could and couldn't find anything here that seemed to be relevant, so if this is in the wrong place will a mod please move it, thank you.

When one installs oh-my-zsh I normally just use: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyz ... install.sh)"
or sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyz ... install.sh)"
During the install oh-my-zsh is installed via yay as it appears in the ~/.zshrc file (below)

Code: Select all

# Path to your oh-my-zsh installation.
#installation via script from github
#export ZSH="/home/$USER/.oh-my-zsh"
#installation via yay -S oh-my-zsh-git
export ZSH=/usr/share/oh-my-zsh/
When attempting an update with
'omz update'
This is the (obvious) result:

Code: Select all

fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
fatal: not in a git directory
Updating Oh My Zsh
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
There was an error updating. Try again later?
fatal: not in a git directory
_omz::update:12: permission denied: /usr/share/oh-my-zsh//cache/.zsh-update
fatal: not a git repository (or any of the parent directories): .git
So, I'm wondering if there is a solution to this or if someone can point me in the right direction as to how I can fix this. Thanks, much appreciated.

User avatar
erikdubois
Captain
Posts: 3997
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Oh-My-Zsh can't update

Post by erikdubois »

Can these help?

https://arcolinux.com/?s=zsh

or these

https://www.youtube.com/c/ErikDubois/search?query=zsh

oh-my-zsh is on other linux distros too

just a way of thinking and installing
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
erikdubois
Captain
Posts: 3997
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Oh-My-Zsh can't update

Post by erikdubois »

This one ?



You need the logic behind it
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

johnpiers
recruit crewman
Posts: 2
Joined: Tue Mar 30, 2021 7:56 pm

Re: [OPEN] Oh-My-Zsh can't update

Post by johnpiers »

erikdubois wrote:
Wed Mar 31, 2021 8:06 am
Can these help?

https://arcolinux.com/?s=zsh

or these

https://www.youtube.com/c/ErikDubois/search?query=zsh

oh-my-zsh is on other linux distros too

just a way of thinking and installing
Hi Eric
Thanks for the reply. I'm not sure if you understand my question. Sorry if I wasn't clear. When one uses this (and the other ArcoLinux iso's) iso and it goes through it's install, it installs zsh and oh-my zsh without intervention from the person doing the install. It works just fine, there isn't a problem per say, it's just that when you try to update oh-my-zsh using the command "omz update" you get the error that is in my first post due to the fact that it's installed the way it is. I kinda like how the ~/.zshrc file is laid out and configured with the ArcoLinux install. I guess it's easy enough to just uninstall oh-my-zsh using yay or pacman and then start over again using curl or wget, as per the oh-my-zsh site, but was hoping that there was a way around not doing it all over again. ZSH install is the easy part, basically under arch linux it's "sudo pacman -S zsh" and if you're installing oh-my-zsh you don't need to configure zsh at all. The first time it runs, gives you 4 options that are pretty straight forward.

Thanks again. Appreciate your time.
Piers.

User avatar
erikdubois
Captain
Posts: 3997
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Oh-My-Zsh can't update

Post by erikdubois »

omz update is unknown to me

i guess I can not help in that regard
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

Post Reply

Return to “General Questions”