gordonfreemanjr
Posts: 16
Joined: Sat Aug 24, 2019 1:41 pm

Can’t install Ubuntu on RPI 4

Wed Nov 06, 2019 2:45 pm

Ok, I’m officially unable to install Ubuntu on my Raspberry Pi 4. So far I tried 3 ways, all of them with a freshly FAT32 formatted SD card:

18.10 through Berryboot. I run Berryboot fine, download the Ubuntu Server image, reboot and the process is stuck within seconds on: cloud-init v. 19.1-1 etc, and it just won’t carry on.
Official 19.10 32-bit Server image. I flash the image on the card, boot up, the process runs for about 5 mins, then freezes on:
[done] started daily apt upgrade and clean activities

and just won’t carry on.

Official 19.10 64-bit Server image. Exactly as above.
The RPI4 is the 4GB version. Any help appreciated, I have nothing. The Ethernet is plugged in, the network is working.

fruitoftheloom
Posts: 20908
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can’t install Ubuntu on RPI 4

Wed Nov 06, 2019 3:00 pm

gordonfreemanjr wrote:
Wed Nov 06, 2019 2:45 pm
Ok, I’m officially unable to install Ubuntu on my Raspberry Pi 4. So far I tried 3 ways, all of them with a freshly FAT32 formatted SD card:

18.10 through Berryboot. I run Berryboot fine, download the Ubuntu Server image, reboot and the process is stuck within seconds on: cloud-init v. 19.1-1 etc, and it just won’t carry on.
Official 19.10 32-bit Server image. I flash the image on the card, boot up, the process runs for about 5 mins, then freezes on:
[done] started daily apt upgrade and clean activities

and just won’t carry on.

Official 19.10 64-bit Server image. Exactly as above.
The RPI4 is the 4GB version. Any help appreciated, I have nothing. The Ethernet is plugged in, the network is working.

Forget NoobS, BerryBoot and PiNN, just use the Canonical download as per:

https://ubuntu.com/download/iot/raspberry-pi

https://ubuntu.com/blog/roadmap-for-off ... berry-pi-4
Last edited by fruitoftheloom on Wed Nov 06, 2019 3:03 pm, edited 1 time in total.
Retired disgracefully.....

User avatar
B.Goode
Posts: 8861
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Can’t install Ubuntu on RPI 4

Wed Nov 06, 2019 3:03 pm

gordonfreemanjr wrote:
Wed Nov 06, 2019 2:45 pm
Ok, I’m officially unable to install Ubuntu on my Raspberry Pi 4.

( ... )

Official 19.10 64-bit Server image. Exactly as above.
The RPI4 is the 4GB version. Any help appreciated, I have nothing. The Ethernet is plugged in, the network is working.


"Officially unable" seems a correct summary -

The Raspberry Pi 4 model B comes with different choices of RAM: 1GB, 2GB and 4GB. However, our official support for this board is currently limited to the 1GB and 2GB versions.
Ref: https://ubuntu.com/blog/roadmap-for-off ... berry-pi-4

gordonfreemanjr
Posts: 16
Joined: Sat Aug 24, 2019 1:41 pm

Re: Can’t install Ubuntu on RPI 4

Wed Nov 06, 2019 3:16 pm

B.Goode wrote:
Wed Nov 06, 2019 3:03 pm
gordonfreemanjr wrote:
Wed Nov 06, 2019 2:45 pm
Ok, I’m officially unable to install Ubuntu on my Raspberry Pi 4.

( ... )

Official 19.10 64-bit Server image. Exactly as above.
The RPI4 is the 4GB version. Any help appreciated, I have nothing. The Ethernet is plugged in, the network is working.


"Officially unable" seems a correct summary -

The Raspberry Pi 4 model B comes with different choices of RAM: 1GB, 2GB and 4GB. However, our official support for this board is currently limited to the 1GB and 2GB versions.
Ref: https://ubuntu.com/blog/roadmap-for-off ... berry-pi-4
:o How did I miss this?
Thanks.

Anyway, the sole reason of my attempts to install Ubuntu on RPI4 are to run Steam and GOG Galaxy clients. Can you recommend any other available OS capable of doing that?

phase
Posts: 30
Joined: Thu Jun 30, 2016 3:05 am

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 8:21 am

if you have issues with the usb ports you have to limit the ram to 3072Mb...i still found issues with the ports even after i set this parameter..seems like a power issue..not shure... but they will fix it..

Code: Select all

total_mem=3072

if you want to utilize whats not being used ...install zram as swap mem

Code: Select all

apt install zram-config

Code: Select all

reboot.
...

gordonfreemanjr
Posts: 16
Joined: Sat Aug 24, 2019 1:41 pm

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 9:11 am

Thank you, but that is not the case. Any install just won’t complete, freezing at the same moment. So I didn’t even get to the USB thing, heh.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23878
Joined: Sat Jul 30, 2011 7:41 pm

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 9:47 am

phase wrote:
Thu Nov 07, 2019 8:21 am
if you have issues with the usb ports you have to limit the ram to 3072Mb...i still found issues with the ports even after i set this parameter..seems like a power issue..not shure... but they will fix it..

Code: Select all

total_mem=3072

if you want to utilize whats not being used ...install zram as swap mem

Code: Select all

apt install zram-config

Code: Select all

reboot.
...
Not a power problem - Canonical need to use the bounce buffer code present in Raspbian as the PCIe peripheral can only access the first 3GB of RAM.

This is why third party OS's are generally not as good as Raspbian - they do not know enough about the HW to do a thorough job.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

phase
Posts: 30
Joined: Thu Jun 30, 2016 3:05 am

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 3:35 pm

ok thank`s for that info...it will most likely become handy when i tell others...on other forum`s i am a member of...thx

phase
Posts: 30
Joined: Thu Jun 30, 2016 3:05 am

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 3:41 pm

@gordon you have to edit the config.txt file prior to inserting the media,,,,hence edit it first then insert and power up the rpi-4...

gordonfreemanjr
Posts: 16
Joined: Sat Aug 24, 2019 1:41 pm

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 4:53 pm

phase wrote: @gordon you have to edit the config.txt file prior to inserting the media,,,,hence edit it first then insert and power up the rpi-4...
@phase How so?

fruitoftheloom
Posts: 20908
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 5:25 pm

gordonfreemanjr wrote:
Thu Nov 07, 2019 4:53 pm
phase wrote: @gordon you have to edit the config.txt file prior to inserting the media,,,,hence edit it first then insert and power up the rpi-4...
@phase How so?

Why not read the link which was posted above ??

https://ubuntu.com/blog/roadmap-for-off ... berry-pi-4
Retired disgracefully.....

gordonfreemanjr
Posts: 16
Joined: Sat Aug 24, 2019 1:41 pm

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 5:39 pm

This I know. As I’ve written already - why not read? - I never got there. The installation halts way earlier.

fruitoftheloom
Posts: 20908
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 6:01 pm

gordonfreemanjr wrote:
Thu Nov 07, 2019 5:39 pm
This I know. As I’ve written already - why not read? - I never got there. The installation halts way earlier.

You should be able to edit that file on the machine you used to create the SD Card !

Which was written above by phase....
Retired disgracefully.....

User avatar
topguy
Posts: 5893
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Can’t install Ubuntu on RPI 4

Thu Nov 07, 2019 10:29 pm

Anyway, the sole reason of my attempts to install Ubuntu on RPI4 are to run Steam and GOG Galaxy clients.
Can you point me to a link where either of them ( Valve / GOG ) confirm that they have linux clients for ARM computers ?

phase
Posts: 30
Joined: Thu Jun 30, 2016 3:05 am

Re: Can’t install Ubuntu on RPI 4

Fri Nov 08, 2019 12:05 am

download the 64 bit version 19.10 from this page...

https://ubuntu.com/download/iot/raspberry-pi

you need a 16Gb sd-card minimum....use etcher to flash the image...

once it has flashed ..eject the sd-card reader ..leave the sd-card in the reader...

re insert the sd-card reader with the flashed sd-card in it back into your computer

open the file manager of your choice..you may need admin privileges to edit the file..
it is in the boot partition of the file system and it is an approx 130 odd Mb partition...if your using a windows machine ..you should find it easy....

really i only edited the

Code: Select all

usercfg.txt 
file ....
..if the files there are in a list ....the file at hand will be around the bottom of the list of files....
open the file and copy paste this code into it...

Code: Select all

total_mem=3072 
.... this line sets the maximum ram usage....

Code: Select all

dtparam=audio=on
.........this line enables the hdmi audio..so




now save the file ...

eject the sd-card reader..remove the sd card..
and insert it into the rpi-4...

connect mouse k-b video Ethernet etc ..you may have a monitor issue so make shore it`s at least native 720p..check cables for known working good ones...


power up the rpi-4..and wait for about 2 or so mins...you should have text running down the screen

it will eventually give you a login prompt...it might roll some more code at this point..just wait till it stops..hit enter a few times..
you should now have the login prompt..go ahead and do the login as i wrote in the next line below...

user and password are both

Code: Select all

 Ubuntu
...it should now login ...

it will then ask you to give it you own new password...

once that is done enter this code

Code: Select all

sudo su  
..hit enter.. that will give you a

Code: Select all

 root user
command line prompt

code this...

Code: Select all

apt update && apt full-upgrade && apt dist-upgrade
..... hit enter...this will do the upgrade procedure...

answer yes to the prompts so it can do it1s install...once it is done
reboot the rpi-4...
and once again login with your password..and the user name is still Ubuntu ...once your logged in
code this

Code: Select all

sudo su
..now you are root user...




once that has done you can now install a desktop..there are a few to choose from ..use google it will help you find other desktop installs...

i chose to .install mate desktop...

Code: Select all

apt install ubuntu-mate-desktop
follow the prompts...it has to download about 1400 files so grab a bag of chips sit back and wait for it to finish....you will get a prompt to choose a display manager...i choose ...lightdm...hit enter.. it will continue ...

once it has stopped back at the command prompt...

reboot it,,,,

it should boot up with the mate desktop login screen greeter,,

there is a round dot in the login box click on it and choose the mate option...

enter your password and it will login to the desktop...

you will most likely have to install ...

Code: Select all

apt install pavucontrol

so you can setup the hdmi output audio via the mate gui once the desktop is installed

i think that the ram size limit is almost fixed so after running the updates you may find you can omit the ram size lie out of the usercfg,txt file..just put an "#" mark in the front of it`s line with a space after the hash..

you may want to install virtual memory...

apt install zram-control..this requires a reboot to apply it into the system....


i would like to add that i played around in the "software & updates" in the gui under the administration menu and selected everything that was not selected
i have this outcome::

Code: Select all

@ubuntu:/home/ubuntu# uname -a
Linux ubuntu 5.3.0-1011-raspi2 #12-Ubuntu SMP Fri Nov 1 09:07:06 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
[email protected]:/home/ubuntu# 
there is a few bugg`s in it still and this is a server image ..there are still packages that are still missing like i2c-tools ....etc..etc

the rest is up to you...

all the best phase....

i think that is the basics 4 you or whoever reads this post....been a long day....
Last edited by phase on Sat Nov 09, 2019 11:34 pm, edited 1 time in total.

BRX7
Posts: 26
Joined: Sat Aug 31, 2019 11:07 pm

Re: Can’t install Ubuntu on RPI 4

Fri Nov 08, 2019 3:49 pm

Can the img be extracted and copied straight to empty project partitions (boot root) ?

my sdcard is created with pinn with empty project spaces

update I have extracted it, now need to know how to make it work with pinn,
cmmdline.txt is missing so i did ln -s to btcmd.txt , i have the os json on the boot paratition
anything else i should look to adjust?

geev03
Posts: 130
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK

Re: Can’t install Ubuntu on RPI 4

Fri Nov 08, 2019 6:53 pm

phase wrote:
Fri Nov 08, 2019 12:05 am
download the 64 bit version 19.10 from this page...

https://ubuntu.com/download/iot/raspberry-pi

you need a 16Gb sd-card minimum....use etcher to flash the image...
.....

i think that is the basics 4 you or whoever reads this post....been a long day....
Thank you, it was easy to get it all working (remote, "headless & arm less" ) in about an hour.
Attachments
ubuntu_19.10_RPi_4_4.jpg
ubuntu_19.10_RPi_4_4.jpg (138.09 KiB) Viewed 385 times

User avatar
PeterO
Posts: 5069
Joined: Sun Jul 22, 2012 4:14 pm

Re: Can’t install Ubuntu on RPI 4

Fri Nov 08, 2019 7:10 pm

jamesh wrote:
Thu Nov 07, 2019 9:47 am
Not a power problem - Canonical need to use the bounce buffer code present in Raspbian as the PCIe peripheral can only access the first 3GB of RAM.
This is why third party OS's are generally not as good as Raspbian - they do not know enough about the HW to do a thorough job.
From https://ubuntu.com/blog/roadmap-for-off ... berry-pi-4
Kernel fixes have been identified by Canonical engineers. We are currently testing these fixes extensively. We will push updates within weeks, following successful test completion.

That's a bit rich when you've already published the fix don't you think ?
PeerO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

geev03
Posts: 130
Joined: Thu Jun 07, 2012 12:40 pm
Location: London, UK

Re: Can’t install Ubuntu on RPI 4

Fri Nov 08, 2019 7:47 pm

After the reboot Kernel changed to 'Kernel: 5.3.0-1008-raspi2' , solving several problems.
XRDP works 'out of the box' :D .

Code: Select all

Last login: Fri Nov  8 17:43:28 2019 from 192.168.1.75
[email protected]:~$ neofetch
            .-/+oossssoo+/-.               [email protected]
        `:+ssssssssssssssssss+:`           -------------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 19.10 aarch64
    .ossssssssssssssssssdMMMNysssso.       Host: Raspberry Pi 4 Model B Rev 1.1
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.3.0-1008-raspi2
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 48 mins
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2104 (dpkg), 3 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.3
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Terminal: /dev/pts/1
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   CPU: (4) @ 1.500GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   Memory: 1269MiB / 3793MiB
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
  +sssssssssdmydMMMMMMMMddddyssssssss+
   /ssssssssssshdmNNNNmyNMMMMhssssss/
    .ossssssssssssssssssdMMMNysssso.
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

[email protected]:~$

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23878
Joined: Sat Jul 30, 2011 7:41 pm

Re: Can’t install Ubuntu on RPI 4

Fri Nov 08, 2019 9:33 pm

PeterO wrote:
Fri Nov 08, 2019 7:10 pm
jamesh wrote:
Thu Nov 07, 2019 9:47 am
Not a power problem - Canonical need to use the bounce buffer code present in Raspbian as the PCIe peripheral can only access the first 3GB of RAM.
This is why third party OS's are generally not as good as Raspbian - they do not know enough about the HW to do a thorough job.
From https://ubuntu.com/blog/roadmap-for-off ... berry-pi-4
Kernel fixes have been identified by Canonical engineers. We are currently testing these fixes extensively. We will push updates within weeks, following successful test completion.

That's a bit rich when you've already published the fix don't you think ?
PeerO
It's a bit richer to do all the testing after the product has been released!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

BRX7
Posts: 26
Joined: Sat Aug 31, 2019 11:07 pm

Re: Can’t install Ubuntu on RPI 4

Sat Nov 09, 2019 10:18 am

hello @procount if your browsing, any tips to get this image to boot with pinn with cmdine.txt?

or anyone else even

Matha
Posts: 9
Joined: Mon Dec 17, 2012 3:22 pm

Re: Can’t install Ubuntu on RPI 4

Sun Nov 10, 2019 3:34 pm

Agree totally with the sentiments by RPi engineer(s) here. Two peeves:
  • Canonical never tested their image with the 4GB model
  • The image naming convention, i.e. without release date or minor version number, is a bit lame. Are we supposed to review the checksum to understand that the original release has now been modified.
Sorry folks, just venting here because posting at UbuntuOne did not generate a single response. BTW, Hui Wang patched the issue in late Aug/early Sep with no regression test failures reported. And yet we still do not have a new ubuntu-server image. Perhaps, Ben and Mark could exchange some notes on agreeing with the nomenclature standards established by the Foundation for public image downloads.

Kind regards.

fatemamiller
Posts: 1
Joined: Thu Nov 14, 2019 1:25 pm

Re: Can’t install Ubuntu on RPI 4

Thu Nov 14, 2019 3:55 pm

topguy wrote:
Thu Nov 07, 2019 10:29 pm
Anyway, the sole reason of my attempts to install Ubuntu on RPI4 are to run Steam and GOG Galaxy clients.
Can you point me to a link where either of them ( Valve / GOG ) confirm that they have linux clients for ARM computers ?
I think none of the forum members knows about it.

Return to “Ubuntu”