Score:0

Downlaod all apt package dependencies for specific package to install later on another machine with different architecture and no Internet

fj flag

I have arm64 devices running ubuntu 20.04. This device does not have Internet connection. I want to install upower utility on it. So I was thinking to offline download all packages required to install on this machine on my laptop which runs ubuntu 20.04 x86_64.

I tried following:

~$ cd Downloads
~/Downloads$ mkdir upower-packages
~/Downloads$ cd upower-packages
~/Downloads/upower-packages$ sudo apt-get update
~/Downloads/upower-packages$ apt-get --download-only -o Dir::Cache::archives=./ -o Debug::NoLocking=1 --print-uris install upower:arm64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package upower:arm64

So I tried adding arm64 archtecture, but :

~/Downloads/upower-packages$ sudo dpkg --add-architecture arm64
~/Downloads/upower-packages$ sudo apt-get update
~/Downloads/upower-packages$ apt-get --download-only -o Dir::Cache::archives=./ -o Debug::NoLocking=1 --print-uris install upower:arm64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package upower:arm64

However the package is indeed available for arm64 as can be seen at this link. I also tried installing it on another arm machine running ubuntu 20.04 with the Internet with simple apt-get install upower and it worked.

What I am missing here?

muru avatar
us flag
The usual mirrors don't have ARM packages. You have to add the ports repository for that: http://ports.ubuntu.com/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.