LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-31-2024, 06:34 AM   #1
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Rep: Reputation: 3
How to install latest Rpi-imager on Ubuntu 20.0.4


System info:
Code:
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
larrycotton@larrycotton-Latitude-E7440:~$ uname -a
Linux larrycotton-Latitude-E7440 5.15.0-101-generic #111~20.04.1-Ubuntu SMP Mon Mar 11 15:44:43 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
larrycotton@larrycotton-Latitude-E7440:~$
Hi

I am trying to install the latest version of the rpi-imager (1.8.5) on my Ubuntu system.

To do so I downloaded imager_1.8.5_amd64.deb and ran the commands:
Code:
$ sudo apt update

$ sudo apt upgrade

$ sudo apt install ./imager_1.8.5_amd64.deb
However when I dos I get the following dependency errors:

Code:
apt install ./imager_1.8.5_amd64.deb 
Reading package lists... Done
Building dependency tree           
Reading state information... Done
Note, selecting 'rpi-imager' instead of './imager_1.8.5_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 rpi-imager : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.14 is to be installed
              Depends: libgnutls30 (>= 3.7.0) but 3.6.13-2ubuntu1.10 is to be installed
              Depends: libqt5core5a (>= 5.15.1) but 5.12.8+dfsg-0ubuntu2.1 is to be installed
              Depends: libqt5dbus5 (>= 5.14.1) but 5.12.8+dfsg-0ubuntu2.1 is to be installed
              Depends: libstdc++6 (>= 12) but 10.5.0-1ubuntu1~20.04 is to be installed
E: Unable to correct problems, you have held broken packages.
Does anyone know what I would need to do to install the required dependencies ?

Or whether it is worth it - I have an Rpi 5 and am as yet unsure whether the latest imager version is required for that or not?
 
Old 03-31-2024, 01:12 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,330

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
The imager is built using older libraries than you have. You need a newer build of RPi-imager.

Personally, I use this approach
Code:
sudo dd if=/path/to/latest_image of=/dev/mmcblk0 bs=1M status=progress
If your sdcard is un a usb socket, use 'of=/dev/sdX'. It might wait a while after finishing before returning a prompt. Wait for the prompt, as it's syncing the sd card and finishing the write.
 
Old 03-31-2024, 02:42 PM   #3
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 485

Rep: Reputation: 179Reputation: 179
Or just install etcher . Makes it easy. https://etcher.balena.io/
 
Old 04-01-2024, 12:27 PM   #4
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Original Poster
Rep: Reputation: 3
Thank you for your replies.

> The imager is built using older libraries than you have. You need a newer build of RPi-imager.
I got the impression it was the other way round - the imager was built with libraries that were newer than the ones I have on the OS ?

I tried the older version of rpi-imager that I already have and that seemed to work - wasn't sure whether I needed the newer version or not, but it seems not.

I did not realise that I could use dd to directly copy the image to an sd card - is that directly bootable or would I need to do something to the image beforehand ?
(I did try it and for me it did not boot, though it may have been the sd card was not in correctly)
 
Old 04-01-2024, 01:50 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,330

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Sorry, I misread that error message.

Yes, the image should boot fine. You don't need any imagers. The essential is to address the drive, ajnd not any partition. The images come with a partition table. The 1st partition is fat, the second ext<something>.
 
Old 04-06-2024, 09:36 AM   #6
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Original Poster
Rep: Reputation: 3
Thank you for the information - good to know I can use dd directly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Rotary Encoders for ESP32, Rpi Pico and RPi 4 LXer Syndicated Linux News 0 07-16-2023 10:25 PM
[SOLVED] Trying to mount USB drive of RPi A into RPi B suziecat Linux - Newbie 5 09-28-2021 08:23 AM
LXer: GNOME 3.33.2 Released, Krita 4.2 Debuts, RPi Camera Modules on RPi Zeros Power the Penguin Watch Project, Intrinsyc Switches Its Home LXer Syndicated Linux News 0 05-30-2019 06:23 AM
LXer: Mini-PC taps RPi Compute Module and supports RPi 2 LXer Syndicated Linux News 0 02-22-2015 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration