scripts icon indicating copy to clipboard operation
scripts copied to clipboard

firmware-util.sh: line 52: ./sources.sh: No such file or directory

Open bam80 opened this issue 2 years ago • 6 comments

$ cd; curl -LO mrchromebox.tech/firmware-util.sh && sudo bash firmware-util.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   185    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  1441  100  1441    0     0    811      0  0:00:01  0:00:01 --:--:--   811

Downloading supporting files...
firmware-util.sh: line 52: ./sources.sh: No such file or directory
firmware-util.sh: line 53: ./firmware.sh: No such file or directory
firmware-util.sh: line 54: ./functions.sh: No such file or directory
firmware-util.sh: line 60: prelim_setup: command not found

PS: looks like it's a problem with snapped curl: it creates it's hierarchy within /tmp/snap.curl, thus an error:

$ sudo ls -R /tmp/snap.curl
/tmp/snap.curl:
tmp

/tmp/snap.curl/tmp:
firmware.sh  functions.sh  sources.sh

bam80 avatar Mar 03 '22 18:03 bam80

boot a live USB with a sane version of curl? I can adjust to use TMP=mktmp() or something I guess

MrChromebox avatar Mar 03 '22 19:03 MrChromebox

As workaround I reinstalled curl with apt. Setting TMP won't probably help as it seems still interpreted within that special /tmp/snap.curl/ directory..

bam80 avatar Mar 03 '22 22:03 bam80

I;m also getting that same error, but it gets a 400 error trying to source the 3 files? I manually got them, but the way Ubuntu is set up with 22.04 on my Dell Chromebook I can't get perms to copy them where they belong. And I can't get into recovery mode nor update from SeaBIOS to fix that. Ideas? Can the script be rewritten to find those 3 where I have them? symbiotic link or something?

PSCGOhio avatar Jul 07 '22 00:07 PSCGOhio

As workaround I reinstalled curl with apt.

@PSCGOhio did you try that?

bam80 avatar Jul 07 '22 09:07 bam80

Yep, if it was in the thread it was tried. The same obstacle of no SU abilities stops me cold.

On Thu, Jul 7, 2022 at 5:40 AM bam80 @.***> wrote:

As workaround I reinstalled curl with apt.

@PSCGOhio https://github.com/PSCGOhio did you try that?

— Reply to this email directly, view it on GitHub https://github.com/MrChromebox/scripts/issues/184#issuecomment-1177321165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ6NAJVMQETFCYC3HFGHFZ3VS2QYXANCNFSM5P3HPLLQ . You are receiving this because you were mentioned.Message ID: @.***>

PSCGOhio avatar Oct 11 '22 09:10 PSCGOhio

@PSCGOhio what are you trying to do? There is no Recovery Mode or SeaBIOS with my UEFI firmware. snap-installed curl is problematic, install via apt instead. You should have no problem then

MrChromebox avatar Oct 11 '22 14:10 MrChromebox

Problem solved: I installed Ubuntu 23.04 on my Asus Chromebook C302C. To make a long story short, I managed to installed Mrchromebox. but no sound (Dummy sound), Bluetooth not working, etc. So I decided to install Qube OS, and it failed, leaving my Chromebook bricked. I found at medium.com/techtalkers, the solution using Ubuntu live usb. It failed with 22.04.2 (No curl), it was a mess: freezing, screen up side down, etc. Then I tried with 23.04 and I had the same problem Bam80 describes. But I didn't have the problems of 22.04.2. It was kind of neat, so when it failed, just out of frustration, I hit Install Ubuntu 23.04 instead of try. And it was lightning fast. It updated neatly, I installed immediately Nordvpn, VLC. So far the only problem is no internal speakers sound, (Bluetooth works) and no tablet mode, but that's nothing compared with a bricked Chromebook and happy to say goodbye to Google consumerism. All this started because Google announced no more support starting some fatidic day of June 2023. I'm getting rid of all Google services, just to save the world.

cutervino avatar Jun 05 '23 02:06 cutervino

Ah, I forgot to state that the freaking rabbit still appears at the beginning of booting

cutervino avatar Jun 05 '23 03:06 cutervino

@cutervino my FAQ is pretty clear about needing to use apt-installed curl, not snap-installed, on newer versions of Ubuntu . There's simply no way to work around the limitations of snap-installed curl.

Ah, I forgot to state that the freaking rabbit still appears at the beginning of booting

I'm not sure I understand the problem, that's the firmware boot splash screen

MrChromebox avatar Jun 05 '23 14:06 MrChromebox

I apologize MrChromebox, I shouldn't have used that word. No problem at all. I'm neither a geek, nor a techy guy. I'm just a citizen of the world that wants to help with the climate change. It's just that, when Ubuntu asked me to erase the whole disk at installation, I thought it'll delete everything. We all know your hard work on this project, and we thank you for that. So I take this opportunity to ask you if there's a way to get the sound working and if it's possible to get tablet mode. I appreciate your help.

cutervino avatar Jun 05 '23 20:06 cutervino

It's just that, when Ubuntu asked me to erase the whole disk at installation, I thought it'll delete everything

yes, it will erase everything on the target installation disk. The firmware is not stored there :)

if there's a way to get the sound working and if it's possible to get tablet mode. I appreciate your help.

on CAVE? Yes, but not using Ubuntu. Check the links on my FAQ page, as well as the #linux channel on the chrultrabook Discord server.

MrChromebox avatar Jun 05 '23 22:06 MrChromebox