Score:0

How to download and add .deb files to local repository

na flag

I'm trying to install a local repository on a local network, and then use that local repo to serve them to other machines on the same local network.

My setup is this:

  • one laptop as a server: where I have an Ubuntu 22.04 server installed, I've installed Nginx on it so that I can serve the files to the network.
  • multiple laptops: also Ubuntu 22.04 servers where I've changed the /etc/apt/sources.list to point only to the local server that I've. like this:
deb [trusted=yes] HTTP://SERVER_LOCAL_IP/debs/amd64/ /

And also I've run apt update after that I changed the file.

Now what I'm doing to download the .deb files is this:

cd /var/www/html/debs/amd64

sudo apt --download-only -o Dir::Cache="/var/www/html/debs/amd64" -o Dir::Cache::archives="./" install package_name

dpkg-scanpackages . /dev/null > Release

The current use case I have is installing ubuntu-desktop-minimal since all of the client machines have only the Ubuntu server, and I would like to have a GUI on them. But in the future, I would also to add more.

But for some reason when I do this I'm always getting the error of missing dependencies or package not found.

Artur Meinild avatar
vn flag
Could you please include the exact error message you get - in your post? Thanks
I sit in a Tesla and translated this thread with Ai:

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.