Score:0

Problems with offline apt-get package repository, file not found: Packages

cn flag

I have two machines running Ubuntu 20.04 server. One of the them is offline as a cold machine and I have tried to set up a offline apt repository with deb files from my online server on it but no matter what I try I get this error:

E: Failed to fetch file:/tmp/repo/dists/focal/main/binary-amd64/Packages File not found

My /etc/apt/sources-list has thsi entry at the top of the file:

deb [arch=amd64 trusted=yes] file:///tmp/repo focal main

My directory structure on the offline machine is:

/tmp/repo/
   dist/focal/main/binary-amd64/
      Packages.gz
      Packages.xz
      Release
   pool/
      all *.deb files from online server (/var/cache/apt)

I am not sure why apd-update want the file "Packages" I have Packages.gz and .xz I followed this guide https://help.ubuntu.com/community/AptGet/Offline/Repository (which btw omits any info on what to do with the .deb files)

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.