Score:0

Local Repository - "Failed to fetch" despite apt update being successful - Ubuntu 20.04.3 LTS

cn flag

I've seen quite a few postings regarding this question, but they either do not provide a solution to my problem or they are referring to much older versions of Ubuntu. I'm running Ubuntu 20.04.3 LTS - Desktop for client virtual machine and Server acting as repository server. I've set up a local repository on the server to the best of ability, having limited knowledge of Linux in general. I've verified port 80/http is open on both server and desktop and can ping both ways. I can also visit my repository via web browser and see the files listed.

apt update works successfully on the client machine, returning the following results:

sudo apt update output results:

screenshot 1

So, I know it's able to reach the repository and see the Release file and/or the Packages.gz file in the necessary directory. However, when I try to install a package such as Python, the following happens.

sudo apt install -y python results:

screenshot 2

The only entry I have in my /etc/apt/sources.list file is as follows:

deb [trusted=yes] http://REDACTED/debrepo/ Packages/

After looking through numerous forums (including this one) for answers along with a myriad of YouTube tutorials, reading official documentation and reading the manuals in the terminal, I'm at a loss as to what I'm missing. I wouldn't doubt if it's something incredibly simple. Whatever it is, I'd love for someone to point it out to me or at the very least point me in the right direction.

Thank you kindly in advance for any assistance and have a wonderful day.

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.