Public bug reported:

I was troubleshooting an issue where apt was unable to update after
copying the sources.list from another machine. It turns out the user was
copy/pasting from an IM client that converted some whitespace to unicode
non-breaking spaces.

To reproduce:

echo deb $'\302'$'\240'http://site.example.com/debian distribution
component | sudo tee /etc/apt/sources.list.d/bugged.list

12.04 and 14.04 results in immediate failure to update:

$ sudo apt-get update
E: The method driver /usr/lib/apt/methods/ http could not be found.

APT in 16.04 seems to handle this a bit more sanely:

$ sudo apt-get update
Hit:1 [removed]
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/ http could not be found.
E: Failed to fetch  http://site.example.com/debian/dists/distribution/InRelease 
 
E: Some index files failed to download. They have been ignored, or old ones 
used instead.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1632392

Title:
  Unicode spaces in sources.list files are not interpreted as spaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1632392/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to