Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why there is nothing work after run this script ? #230

Closed
EsamLasheen opened this issue Jul 25, 2024 · 15 comments
Closed

why there is nothing work after run this script ? #230

EsamLasheen opened this issue Jul 25, 2024 · 15 comments

Comments

@EsamLasheen
Copy link

2024-07-25 14_30_57-Ubuntu-omakub - VMware Workstation

@IbrahimTanyalcin
Copy link

IbrahimTanyalcin commented Jul 25, 2024

Probably because your architecture is not x64, try running dkpg --print-architecture or lscpu to check it. I have done this PR, try cloning that repo and run the install script again. A few apps can fail, you will find omakub_report.log in the root after installation completes. Clone && run install.sh directly not via wget.

@linuxnoob21
Copy link

linuxnoob21 commented Jul 25, 2024

I'm also experiencing the same issue and my architecture is x64, installed it in a vm perfectly fine 2 days ago went to install on bare metal and encountered the same problem

@nestorjgomez
Copy link

Hi @IbrahimTanyalcin! Greetings to you from Argentina 🇦🇷
I have the same issue @EsamLasheen mentioned a few hours ago... My architecture is x86_64 Does it work with it?
I've had installed 3 times Ubuntu 24.04 LTS to run this script.
The first time I've executed I've had receive this warning: The unit file, source configuration file or drops-on of apt-news.service changed on disk. Run 'systemctl daemon-reload' to reload units. It happened twice.
This is the terminal screenshot IMG_20240725_104509_991.jpg

Could you help me to solve it? I don't do an sudo apt update to avoid not to have an Ubuntu "fresh install". Thank you!

@cyommer
Copy link
Contributor

cyommer commented Jul 25, 2024

I was running into the same problem. There appears to be an issue with the gum installation as part of the install script.

There's a script referenced in the installer (app-gum.sh) that looks like this:

# Gum is used for the Omakub commands for tailoring Omakub after the initial install
cd /tmp
GUM_VERSION="0.14.1" # Use known good version
wget -qO gum.deb "https://github.com/charmbracelet/gum/releases/latest/download/gum_${GUM_VERSION}_amd64.deb"
sudo apt-get install -y ./gum.deb
rm gum.deb
cd -

It's setting the GUM_VERSION to 0.14.1, but the wget link points to latest. Which will probably always break when new versions are released. The fix would be to change this line:

wget -qO gum.deb "https://github.com/charmbracelet/gum/releases/latest/download/gum_${GUM_VERSION}_amd64.deb"

to this:

wget -qO gum.deb "https://github.com/charmbracelet/gum/releases/download/v{GUM_VERSION}/gum_${GUM_VERSION}_amd64.deb"

I'll see about creating a PR here in a few minutes after I finish testing it just to be sure.

@nestorjgomez
Copy link

@cyommer Hi! I installed "gum" using snap but a few minutes later I've found the same script about "gum" with the version is required to the script to work out... I'll wait your response. Thanks for your comment!

@cyommer
Copy link
Contributor

cyommer commented Jul 25, 2024

@nestorjgomez 👋

As a quick workaround, you can maybe take one of two paths.

  1. If you've already installed gum, you should be able to edit ~/.local/share/omakub/install.sh and comment out this line:
source ~/.local/share/omakub/install/terminal/required/app-gum.sh >/dev/null

and then re-run the install from ~/.local/share/omakub/install.sh.

or...

  1. You could update ~/.local/share/omakub/install/terminal/required/app-gum.sh with the changes mentioned in my previous comment.

Either way should work.

@IbrahimTanyalcin
Copy link

@nestorjgomez it seems to be similar to this although not exactly the same, https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2055239, they report it to be harmless, This should work:

wget -qO gum.deb "https://github.com/charmbracelet/gum/releases/latest/download/gum_${GUM_VERSION}_${ARCH}.deb"
sudo apt-get install -y ./gum.deb
rm gum.deb

you can replace GUM_VERSION with "latest" as @cyommer suggessted and ARCH should be amd64 for x86_x64 and arm64 for aarch64

@EsamLasheen
Copy link
Author

@nestorjgomez
does it work with you ?

@dhh
Copy link
Member

dhh commented Jul 25, 2024

Fixed the immediate issue in fcb3e9c. But we need to fix that installer. It's using the latest path but with a specific version. And that breaks whenever there's a release of gum.

@nestorjgomez
Copy link

nestorjgomez commented Jul 25, 2024

Thanks to all of you!!
@dhh Do you recommend me to delete the "previous version" and clone it again to test that if it works? Greetings to you from Argentina!!

@dhh
Copy link
Member

dhh commented Jul 25, 2024

No, it'll automatically pull down the latest version when you run the installer again. So you can just paste and run.

@dhh dhh closed this as completed Jul 25, 2024
@dhh
Copy link
Member

dhh commented Jul 25, 2024

Going to start a new ticket for the upgrade needed.

@dhh
Copy link
Member

dhh commented Jul 25, 2024

See #231

@nestorjgomez
Copy link

nestorjgomez commented Jul 25, 2024

I have followed the @cyommer e @IbrahimTanyalcin suggestions:

@nestorjgomez
Copy link

It worked for me @dhh @cyommer @IbrahimTanyalcin @EsamLasheen @linuxnoob21!! Some warnings came up, but the installation was never stopped abruptly...
Captura desde 2024-07-25 17-26-26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants