apt-get failed to fetch repository error solved.

For time immortal I have been searching to solve the error when I do apt-get update.

W: Failed to fetch http://archive.canonical.com/dists/rosa/partner/binary-i386/Packages 404 Not Found [IP: 2001:67c:1360:8c01::1b 80]

I searched the web for solutions, and I deleted this line and that line, but nothing happened. Until today, when I found the way out [link: https://forums.linuxmint.com/viewtopic.php?t=214358].

First I used the following command:

> inxi -r

Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
 deb http://archive.canonical.com/ rosa partner 
 Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list 
 deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main 
 Active apt sources in file: /etc/apt/sources.list.d/kubuntu-ppa-backports-trusty.list 
 deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu trusty main 
 deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu trusty main 
 Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list 
 deb http://packages.linuxmint.com rosa main upstream import 
 deb http://extra.linuxmint.com rosa main 
 deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse 
 deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse 
 deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
 deb http://archive.canonical.com/ubuntu/ trusty partner 
 Active apt sources in file: /etc/apt/sources.list.d/vikoadi-ppa-trusty.list 
 deb http://ppa.launchpad.net/vikoadi/ppa/ubuntu trusty main 
 deb-src http://ppa.launchpad.net/vikoadi/ppa/ubuntu trusty main

We can see the apt-get error occurred when fetching the archive.cannonical.com rosa partner repositories.

W: Failed to fetch http://archive.canonical.com/dists/rosa/partner/binary-i386/Packages 404 Not Found [IP: 2001:67c:1360:8c01::1b 80]

This repository is in the  /etc/apt/sources.list.d/additional-repositories.list file as we can see from the output of the inxi command.

We just delete this file or the specific line in the file and then if we do apt-get update. No errors!

 

 

#apt-get, #linux