this post was submitted on 19 Apr 2021
2 points (100.0% liked)
Linux
49469 readers
669 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You're right! I edited the post including the link to the logs. Thanks!
Ok, sorry for the late response. Looking through the logs, it seems that the problem may be
curl
somehow failing to fetchgitstatusd
. The script tries fetchinggitstatusd-linux-x86_64.tar.gz
at several mirrors, from what I can gather, and all of them fail.This might be because
curl
itself is not working. I recall that there were reports ofcurl
not working on Cygwin which I read about somewhere, and Cygwin seems to be what you're on. I'd check if you can run thecurl
commands used in the logs manually to fetch the resources at those URLs. So try running:Or:
Or any one of those mirror links in the logs, and see what happens.
Thanks for the response. You're right: curl fails to fetch that file. However, I could manually download it. Do you know where I should extract it to? Thanks.
This thread provides a "manual installation method" you could try before attempting to manually download (as things could go wrong):
So in your case, you could modify this to update your powerlevel10k and then run the install script:
The install script can be found here on Github, which also provides clues to how
gitstatusd
is fetched: it's actually a binary executable that is placed in a cache directory by the install script. This cache folder is referenced as"${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}"
. So, probably yourCygwin home folder/.cache/gitstatus
should be where you should try to extractgitstatusd
manually.Extracting the binary to
~/.cache/gitstatus
worked! Thank you very much!!! Now there's only that ugly symbols in the prompt :(No problem, glad it worked! For the symbols, try installing this font ("Meslo Nerd Font patched for Powerlevel10k") and see if it helps.
I installed this font, but the problem persists :( Could it be something related to the terminal? I'm using GNOME Terminal 2.31.3
I think it should be alright? It is compatible, maybe try updating GNOME Terminal though. The stable version should be at 3.x.x for most systems.
Try doing the below after you update, or if you can't update try it anyways, I guess 😉.
And finally try running
p10k configure
if possible on your system.It didn't work :(
Also, I couldn't manage to update the terminal.
Try restarting the terminal application and
zsh
, if you haven't already, after changing the font.I thought of something else too to try. Perhaps GNOME Terminal isn't rendering Unicode properly. Try setting the character encoding to UTF-8. Terminal -> Set Character Encoding -> UTF-8. If UTF-8 is already set, set it to a different encoding and then back to UTF-8.
I tried... It didn't work :(
Did you run p10k configure after you changed the font? You should run it after you change the font. Afterwards, try updating GNOME terminal if the problem persists. You mentioned that you couldn't update it last time, was there a specific reason? I could help with that.
You could also try filing an issue on their Github and see if that gets you anywhere.
Sorry for the delay, I broke the system trying to install zsh... I did run p10k config, reboot, and tried updating the terminal. Actually, that version seems to be the latest available (it is a RedHat VDI). Well, maybe I'll open an issue in github :( Thank you very much for your help!
No problem. Best of luck!