weird thing for apache2 with error code 404

I’ve find a really really weird thing that’ve happened to me!
there I set up a apache2 server when I need to build an apt repository

I give all file with privilege 777,so I use command:

wget http://10.0.7.180/repo/ncurses-term_6.0+20160213-1ubuntu1_all.deb

and it works,but when I download another package there are a 404:

wget http://10.0.7.180/vim_2%3a7.4.1689-3ubuntu1.2_amd64.deb
--2018-12-20 22:23:22--  http://10.0.7.180/vim_2%3a7.4.1689- 
 3ubuntu1.2_amd64.deb
 Connecting to 10.0.7.180:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2018-12-20 22:23:22 ERROR 404: Not Found.

and at the first time,I guess I make a typo,but so I’ll try it again
,it is 404 even I copy paste,so I copy it to root directory,and
wget with http://xxx/filename but guess
what?
same error log again exactly like one before.
things are exactly out of control:

 root@ubuntu:/var/www/html# wget http://10.0.7.180/repo/ssh_1%3a7.2p2-4ubuntu2.6_all.deb
--2018-12-20 22:38:37--  http://10.0.7.180/repo/ssh_1%3a7.2p2-4ubuntu2.6_all.deb
Connecting to 10.0.7.180:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-12-20 22:38:37 ERROR 404: Not Found.

root@ubuntu:/var/www/html# wget http://10.0.7.180/repo/humanity-icon-theme_0.6.10.1_all.deb
--2018-12-20 22:39:01--  http://10.0.7.180/repo/humanity-icon-theme_0.6.10.1_all.deb
Connecting to 10.0.7.180:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1289056 (1.2M) [application/x-debian-package]
Saving to: ‘humanity-icon-theme_0.6.10.1_all.deb’

humanity-icon-theme_0.6.10.1_all.deb             100%[=========================================================================================================>]   1.23M  --.-KB/s    in 0.01s   

2018-12-20 22:39:01 (119 MB/s) - ‘humanity-icon-theme_0.6.10.1_all.deb’ saved [1289056/1289056]

Answer

Your filenames you use for wget are wrong. %3a evaluates to :.

The filename is vim_7.4.1689-3ubuntu1.2_amd64.deb.

Attribution
Source : Link , Question Author : oneslide icywater , Answer Author : Sven

Leave a Comment