Apt server

I’d like to set up an apt-server for my customized image.
So far I can mirror the files to my local from https://repo.download.nvidia.com/jetson/common.

But the “apt update” at the Jetson failed with 404 error,
I’d like to ask what the folder architecture should be in the apt-server?

Or Is there any document to guide this?

Hi,
Our apt servers are same as other Ubuntu servers. You may search online to find more information.

For packetizing Debian packages, we have the tool and please check

Linux_for_Tegra/tools/Debian/nvdebrepack.sh
Linux_for_Tegra/tools/Debian/nvdebrepack.txt

Hi Dane:
Thanks.

I tried to put the statements in my mirror.list
“deb http://repo.download.nvidia.com/jetson/x86_64/focal r36.2 main”
Then it downloasded all about x86_x64

Then replace the staements as
"deb https://repo.download.nvidia.com/jetson/common r36.2 main
deb https://repo.download.nvidia.com/jetson/t234 r36.2 main
"
The it downloaded a reasonable file architecture to my server. as the following

$ tree repo.download.nvidia.com/
repo.download.nvidia.com/
└── jetson
├── common
│ └── dists
│ └── r36.2
│ ├── InRelease
│ ├── Release
│ └── Release.gpg
└── t234
└── dists
└── r36.2
├── InRelease
├── Release
└── Release.gpg

7 directories, 6 files

But during the download, it showed the errors

apt-mirror: can’t open index repo.download.nvidia.com/jetson/common//dists/r36.2/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891, chunk 174.

apt-mirror: can’t open index repo.download.nvidia.com/jetson/t234//dists/r36.2/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891, chunk 174.
(for the complete log, pls find it in the attachment)

Could you help on this?
apt-mirror.txt (1.7 KB)

Hi,
r36.2 is developer preview. You may try r36.3(Jetpack 6.0GA) which is the production release.

Hi Dane:

Modified the mirror.list accordingly as
“=====================================================
deb http://repo.download.nvidia.com/jetson/x86_64/focal r36.3 main
deb https://repo.download.nvidia.com/jetson/common r36.3 main
deb https://repo.download.nvidia.com/jetson/t234 r36.3 main
======================================================”

during the mirror, it shows with following errors

apt-mirror: can’t open index repo.download.nvidia.com/jetson/t234//dists/r36.3/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891.

apt-mirror: can’t open index repo.download.nvidia.com/jetson/x86_64/focal//dists/r36.3/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891.

apt-mirror: can’t open index repo.download.nvidia.com/jetson/common//dists/r36.3/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891.

apt-mirror: can’t open index repo.download.nvidia.com/jetson/t234//dists/r36.3/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891.

PPPPP]

and finally , I get the files as

Hi:
From my test on June 26th, I cannot get the complete files from r36.3.
Can somebody help?

Hi,
Are you able to directly download it from our servers? If it works we would suggest use this approach. And can develop your debian packages and install them through dpkg commands.

Hi Dane:
Thanks.

What I see in the nVidia PAT server is as the enclosed file.
I can download single file one by one.

But from understanding and testing,
When I execute “sudo apt dist-upgrade” on Jetson,
It should get a lot files from the APT server and the files are put in specific folders.

What files should I prepare in my private APT server and how to organize the files?
Such as
in ‘main’ folder, it should contain files release, release.gpg …
in ‘t234’ folder, it should contains files xxxxxxx …

I don’t have idea about this,
That’s why I’d like to fetch a working package from the nVidia APT site to be an example for me.

Hi:
Any update?

Running into the same error here with using apt-mirror on Ubuntu 22.04.

apt-mirror: can’t open index repo.download.nvidia.com/jetson/t234//dists/r35.2/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 891.

We need to download a full repo mirror to be used in an air gapped network. Any help would be appreciated.

Just use deb-arm64 or deb [ arch=arm64 ] with the apt-mirror2 to mirror repos in architecture that differs from you host arch.

See also mirror.list · ac7bfa6bc1a9291269e3a34587c28d1c887e1bb4 · apt-mirror2 / apt-mirror2 · GitLab

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.