#7817 closed defect (fixed)
Failed download from the Ubuntu repository
Reported by: | Owned by: | bastiK | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Ubuntu package | Version: | |
Keywords: | update Ubuntu 12.04 precise | Cc: |
Description
Upgrading to the latest version of JOSM from http://josm.openstreetmap.de/apt doesn't work for me. When I do "Update" in Synaptic after adding the relevant repository (according to the instructions at http://josm.openstreetmap.de/wiki/Download#Ubuntu), I get the following error message (partly translated):
"Unable to download file http://josm.openstreetmap.de/apt/dists/precise/InRelease. Unable to find expected entry 'universe/source/Sources' in Release file (Wrong sources.list entry or malformed file)
Some index files failed to download. They have been ignored, or old ones used instead."
- Operating system: Ubuntu 12.04
- Current JOSM version: 4878
- Apt line that I added: deb http://josm.openstreetmap.de/apt precise universe
The public key appears to be successfully registered. Trying to install from the terminal gives the same error message.
Any ideas?
Attachments (0)
Change History (11)
comment:1 by , 13 years ago
Component: | unspecified → Ubuntu package |
---|---|
Owner: | changed from | to
comment:2 by , 13 years ago
comment:3 by , 13 years ago
I removed the apt line for the JOSM source code (unchecked it on Synaptic), and now JOSM was updated to the version 5267. Thanks for the advice!
There seems to be something wrong with the installation procedure suggested at the download instruction page, as I didn't add the apt line for source code manually to my sources.list.file. It seems that the problematic line was added automatically. I only gave the following commands at the terminal:
- deb http://josm.openstreetmap.de/apt precise universe
- wget -q http://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -
- sudo apt-get update
- sudo apt-get remove josm josm-plugins
- sudo apt-get install josm
comment:4 by , 13 years ago
deb http://josm.openstreetmap.de/apt precise universe
Is this really a command? I think if you add a source in Synaptic, the deb-src line is added automatically. However, this is not what the doc suggests.
follow-up: 6 comment:5 by , 13 years ago
I did not add the source in Synaptic, but at the terminal according to the instruction given at http://josm.openstreetmap.de/wiki/Download#Ubuntu. When the installation through command line failed, I tried to install JOSM in Synaptic, but I didn't touch the software sources at this stage. When I clicked "refresh" in Synaptic, I got a similar error message as I got originally at the terminal. I see that I was somewhat vague about this on my bug report.
comment:6 by , 13 years ago
Replying to ari.torhamo@…:
I did not add the source in Synaptic, but at the terminal according to the instruction given at http://josm.openstreetmap.de/wiki/Download#Ubuntu. When the installation through command line failed, I tried to install JOSM in Synaptic, but I didn't touch the software sources at this stage. When I clicked "refresh" in Synaptic, I got a similar error message as I got originally at the terminal. I see that I was somewhat vague about this on my bug report.
How did you add the line
deb http://josm.openstreetmap.de/apt precise universe
to /etc/apt/sources.list
?
follow-up: 8 comment:7 by , 13 years ago
Do you mean "how did the line deb http://josm.openstreetmap.de/apt precise universe" end up into the /etc/apt/sources.list? I don't know. I think at this point it should be quite clear that I haven't personally edited /etc/apt/sources.list in any way (I haven't even looked at the sources.list directly at least in the last 6 years. I probably wouldn't even have remembered the name of the file, unless you wouldn't have mentioned it). If some system software has edited it, I don't know, because I'm not a developer or in any other way closely familiar with the operating system. I'm just guessing, but perhaps the system edited the file when I installed JOSM for the first time through the Ubuntu software centre. (As I say in my bug report, I was trying to upgrade JOSM to the latest version).
comment:8 by , 13 years ago
Replying to ari.torhamo@…:
Do you mean "how did the line deb http://josm.openstreetmap.de/apt precise universe" end up into the /etc/apt/sources.list?
Exactly.
I don't know.
Ok, then we are getting no where here. :)
I think at this point it should be quite clear that I haven't personally edited /etc/apt/sources.list in any way (I haven't even looked at the sources.list directly at least in the last 6 years. I probably wouldn't even have remembered the name of the file, unless you wouldn't have mentioned it). If some system software has edited it, I don't know, because I'm not a developer or in any other way closely familiar with the operating system. I'm just guessing, but perhaps the system edited the file when I installed JOSM for the first time through the Ubuntu software centre. (As I say in my bug report, I was trying to upgrade JOSM to the latest version).
The josm.openstreetmap.de repository is not available in the Ubuntu software center by default, so you must have added it in some other way.
comment:9 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've configured the repository to include sources: The number of source packages is zero, but there should no longer be an error, when you have the line
deb-src http://josm.openstreetmap.de/apt precise universe
in your /etc/apt/sources.list
.
comment:10 by , 13 years ago
OK, thanks for fixing this.
It may remain a mystery where the source line came from. I installed JOSM (version 4878) from the Ubuntu repositories on June 24th, and that didn't involve any editing of the software sources from my part, it was a regular clickety-click-process. The only other place that I have visited that has JOSM available for download through a repository is the Openstreetmap site. My command line history has some 35 lines in it, and the only ones related to JOSM are these:
- wget -q http://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -
- sudo apt-get update
- sudo apt-get remove josm josm-plugins
- sudo apt-get install josm
One thing came to my mind. What made me to begin the process of installation was the fact that JOSM hinted about a newer available version at one point after starting JOSM. At the info page a link related to installation was presented (I don't remember exactly what it said), which I clicked, but because I noticed that the JOSM version didn't change, I (a little later) proceeded as described above. Perhaps JOSM edited the sources.lis at this phase (I guess you would have suggested that already, if it was possible).
comment:11 by , 13 years ago
Thought Ubuntu changed its policy and uses /etc/apt/sources.list.d/
instead of a single file.
We do not offer deb-src, please recheck your sources.list file.