springzfx / archlinux

8 stars 4 forks source link

download netease-music-cloud时候出现403错误,详见报错 #3

Open StarkChristmas opened 4 years ago

StarkChristmas commented 4 years ago

download netease-music-cloud时候出现403错误

➜  makepkg -si                                                                 ✔  23:24:43
==> Making package: netease-cloud-music 1.2.1-1 (Tue 03 Mar 2020 11:24:49 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 403 Forbidden
==> ERROR: Failure while downloading https://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb
    Aborting...
StarkChristmas commented 4 years ago

经过这几天的折腾,发现了解决办法: 我尝试

curl -O https://d1.music.126.net/dmusic/netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

md5sum之后:

aeadfdd3b2153e468a505bcd28268824  netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

ls -alth看了一下大小原来只有235,这一看就不对啊

-rw-r--r--  1 hacker users  235  3月 22 22:20 netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

我直接从chrome上下载在校验

1f47c7dc3d9ce46da8099e539ee8a74d  netease-cloud-music_1.2.1_amd64_ubuntu_20190428.deb

这回就对上了,再次makepkg 就没问题了