Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Why the packages in the directory

/var/cache/apt/archives/

have names like: *x11proto-damage-Dev_1%3a1.2.0-1_all.deb* where the "strange" in this case is "%3". In fact, if I download it manually from the firefox the package has the name "normal".

thanks

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I think it's because the cache contains the URL specific scheme of representation characters, %3a is ASCII code 3A in hexadecimal, which is character ":" and if you query that installed package eg with command dpkg -s x11proto-damage-dev | grep Version you can see that it contains ":"

Version: 1:1.2.0-1

So indeed, that ":" is encoded as %3a ...

share|improve this answer
1  
Thanks. But I do not understand why some symbols do not have the notation '%..' as for example '+'. –  user10707 Feb 12 '11 at 19:03
1  
"...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a URL." I understand! Thanks for the idea. –  user10707 Feb 12 '11 at 19:08
    
Yes, there are rules of this encoding, it's hard to ask "why", because it was defined this way :) But it's nice that you figured out yourself too after the first comment, good work :) –  LGB Feb 12 '11 at 19:58
    
Oops, I tried to upvote your second comment, but accidentally clicked the first one :p Well, nice self-education ^^ –  Lekensteyn Feb 12 '11 at 20:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.