Unicode spaces in sources.list files are not interpreted as spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
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://
12.04 and 14.04 results in immediate failure to update:
$ sudo apt-get update
E: The method driver /usr/lib/
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/
E: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
tags: | added: precise trusty |
Changed in apt (Ubuntu): | |
importance: | Undecided → Low |