I am using Linux Mint. When I try to update packages using the command sudo apt-get update, I get this problem:


  • May be your Network is blocking, to download some of the required files. Use Proxy or VPN to download them. – Chandra Sekhar Jul 6 '17 at 13:02

There is no trusly distro but there is a trusty ("Trusty Tahr", aka Ubuntu 14.04)(and http://download.virtualbox.org/virtualbox/debian/dists/trusty is a valid URL). And AFAIK there is no Ubuntu distribution called "rafaela" (the "r" distro is "Raring Ringtail" aka Ubuntu 13.04).

So, check your URLs.

  • i change it to trusty , but i still get this error – Sihem Hcine Jul 7 '17 at 7:30
  • W: Conflicting distribution: http://download.virtualbox.org rafaela InRelease (expected rafaela but got trusty) W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) – Sihem Hcine Jul 7 '17 at 7:30
  • W: Failed to fetch http://archive.canonical.com/ubuntu/dists/rafaela/partner/binary-amd64/Packages 404 Not Found [IP: 80] W: Failed to fetch http://archive.canonical.com/ubuntu/dists/rafaela/partner/binary-i386/Packages 404 Not Found [IP: 80] W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release Unable to find expected entry 'maindeb/source/Sources' in Release file (Wrong sources.list entry or malformed file) – Sihem Hcine Jul 7 '17 at 7:31
  • ps : sudo gedit /etc/apt/sources.list.d/google-chrome.list is empty for me , !! – Sihem Hcine Jul 7 '17 at 7:36
  • "rafela" is the name of a Linux Mint release, you won't find it in the Canonical repos (who are meant for Ubuntu). Where did you find these URLs? – xenoid Jul 7 '17 at 7:55

When I copy/paste the URL in your comments (I couldn't do that with your initial question, since it's a screenshot) and use it with wget, I get:

wget http://archive.canonical.com/ubuntu/dists/rafaela/partner/binary-amd64/Packages
--2017-07-07 09:56:29--  http://archive.canonical.com/ubuntu/dists/rafaela/partner/bi%E2%80%8C%E2%80%8Bnary-amd64/Packages
Resolving archive.canonical.com (archive.canonical.com)... 2001:67c:1360:8c01::16, 2001:67c:1360:8c01::1b,, ...
Connecting to archive.canonical.com (archive.canonical.com)|2001:67c:1360:8c01::16|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-07 09:56:29 ERROR 404: Not Found.

If you wonder what %E2%80%8C%E2%80%8B are doing in the URL, they are the bytes of the UTF-8 encodings of two special characters: U+200C ZERO WIDTH NON-JOINER and U+200B ZERO WIDTH SPACE. These characters are really in your post/comment... here the source of the SE page I'm reading:

Failed to fetch http://archive.canonical.com/ubuntu/dists/rafaela/partner/bi‌​nary-amd64/Packages

So the question is: did you copy/paste these URLs from a Word document? If so copy them to something that only accepts ASCII (a really basic editor) and clean the mess.

  • icopy and pasted it from the terminal – Sihem Hcine Jul 7 '17 at 9:26
  • So you entered the whole URLin the terminal by typing it initially? (because I I copy your URL to my terminal, the special characters don't show... it's only wget that reports them. So they can be there... Did you try to use these URLs with wget? – xenoid Jul 7 '17 at 9:36
  • with ` wget archive.canonical.com/ubuntu/dists/rafaela/partner/binary-i386/… ` and wget http://archive.canonical.com/ubuntu/dists/rafaela/partner/binary-amd64/Packages i get : HTTP request sent, awaiting response... 404 Not Found – Sihem Hcine Jul 7 '17 at 9:56
  • with the otther URLs it fine Saving to: ‘index.html.1’ 100%[======================================>] 67,366 189KB/s in 0.3s 2017-07-07 10:57:34 (189 KB/s) - ‘index.html.1’ saved [67366/67366] – Sihem Hcine Jul 7 '17 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.