Closed tianfeiwei closed 2 years ago
@yihui It seems it has changed name to https://github.com/gohugoio/hugo/releases/tag/v0.102.2
: https://github.com/gohugoio/hugo/releases/tag/v0.102.2
I see. They no longer provide different binaries for different architectures, but only a single hugo_extended_VERSION_macOS-universal.tar.gz
. This change was introduced in v0.102.0 released 4 days ago.
I'll fix it today. Thanks for the report!
Actually you can also use blogdown::install_hugo(arch = 'universal')
, but I'll fix it anyway.
Should be fixed now. You can either use the method I mentioned above, or install the development version via
remotes::install_github('rstudio/blogdown')
Hi Yihui,
Thank you for making and keep maintaining this package! I had trouble installing the Hugo and found your fixed solution. But there seems to be an update on the source code from the Hugo release yesterday, maybe that's causing additional errors after your previous fix. Here are the list of things I have tried and using the arch = 'amd64'
seems to work for me so far. I just wanted to share my learning here in case others run into the same issue and made the error visible to you so maybe you could update the package as you see fit. Thank you!
blogdown::install_hugo(arch = 'universal') no longer works as there's no such file exist anymore. I tried
> blogdown::install_hugo(arch = 'universal')
The latest Hugo version is v0.103.0
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_0.103.0_Windows-universal.zip'
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_0.103.0_Windows-universal.zip'
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_0.103.0_Windows-universal.zip'
% 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: 404
Error in xfun::download_file(paste0(base, zipfile), zipfile, mode = "wb", :
Failed to download hugo_0.103.0_Windows-universal.zip from https://github.com/gohugoio/hugo/releases/tag/v0.103.0. Please check blogdown::hugo_installers("0.103.0") for available Hugo installers, and use the appropriate os/arch/extended arguments for blogdown::install_hugo().
blogdown::install_hugo(arch = 'amd64') and it worked. Not sure if this is what I needed to run on a Windows, but this is the only way I can install Hugo now.
> blogdown::install_hugo(arch = 'amd64')
The latest Hugo version is v0.103.0
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_0.103.0_Windows-amd64.zip'
Content type 'application/octet-stream' length 17278868 bytes (16.5 MB)
downloaded 16.5 MB
I also tried remotes::install_github('rstudio/blogdown') and still got error on installing Hugo.
> install_hugo()
The latest Hugo version is v0.103.0
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_extended_0.103.0_Windows-64bit.zip'
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_extended_0.103.0_Windows-64bit.zip'
trying URL 'https://github.com/gohugoio/hugo/releases/download/v0.103.0/hugo_extended_0.103.0_Windows-64bit.zip'
% 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: 404
Error in xfun::download_file(paste0(base, zipfile), zipfile, mode = "wb", :
Failed to download hugo_extended_0.103.0_Windows-64bit.zip from https://github.com/gohugoio/hugo/releases/tag/v0.103.0. Please check blogdown::hugo_installers("0.103.0") for available Hugo installers, and use the appropriate os/arch/extended arguments for blogdown::install_hugo().
@NatWu Thanks for the report! Please see #729, which I have fixed a few hours ago.
BTW, the error message says:
Please check
blogdown::hugo_installers("0.103.0")
for available Hugo installers, and use the appropriate os/arch/extended arguments forblogdown::install_hugo()
If you do that, you will see arch = 'universal'
is not a possible value for windows.
> blogdown::hugo_installers("0.103.0")
version os arch extended
hugo_0.103.0_darwin-universal.tar.gz 0.103.0 darwin universal FALSE
hugo_0.103.0_dragonfly-amd64.tar.gz 0.103.0 dragonfly amd64 FALSE
hugo_0.103.0_freebsd-amd64.tar.gz 0.103.0 freebsd amd64 FALSE
hugo_0.103.0_Linux-64bit.tar.gz 0.103.0 Linux 64bit FALSE
hugo_0.103.0_linux-amd64.tar.gz 0.103.0 linux amd64 FALSE
hugo_0.103.0_linux-arm.tar.gz 0.103.0 linux arm FALSE
hugo_0.103.0_linux-arm64.tar.gz 0.103.0 linux arm64 FALSE
hugo_0.103.0_netbsd-amd64.tar.gz 0.103.0 netbsd amd64 FALSE
hugo_0.103.0_openbsd-amd64.tar.gz 0.103.0 openbsd amd64 FALSE
hugo_0.103.0_windows-amd64.zip 0.103.0 windows amd64 FALSE
hugo_0.103.0_windows-arm64.zip 0.103.0 windows arm64 FALSE
hugo_extended_0.103.0_darwin-universal.tar.gz 0.103.0 darwin universal TRUE
hugo_extended_0.103.0_Linux-64bit.tar.gz 0.103.0 Linux 64bit TRUE
hugo_extended_0.103.0_linux-amd64.tar.gz 0.103.0 linux amd64 TRUE
hugo_extended_0.103.0_linux-arm64.tar.gz 0.103.0 linux arm64 TRUE
hugo_extended_0.103.0_windows-amd64.zip 0.103.0 windows amd64 TRUE
@yihui Thank you for the quick fix and the recommendation on error message handling!
@NatWu Thanks for the report! Please see #729, which I have fixed a few hours ago.
BTW, the error message says:
Please check
blogdown::hugo_installers("0.103.0")
for available Hugo installers, and use the appropriate os/arch/extended arguments forblogdown::install_hugo()
If you do that, you will see
arch = 'universal'
is not a possible value for windows.> blogdown::hugo_installers("0.103.0") version os arch extended hugo_0.103.0_darwin-universal.tar.gz 0.103.0 darwin universal FALSE hugo_0.103.0_dragonfly-amd64.tar.gz 0.103.0 dragonfly amd64 FALSE hugo_0.103.0_freebsd-amd64.tar.gz 0.103.0 freebsd amd64 FALSE hugo_0.103.0_Linux-64bit.tar.gz 0.103.0 Linux 64bit FALSE hugo_0.103.0_linux-amd64.tar.gz 0.103.0 linux amd64 FALSE hugo_0.103.0_linux-arm.tar.gz 0.103.0 linux arm FALSE hugo_0.103.0_linux-arm64.tar.gz 0.103.0 linux arm64 FALSE hugo_0.103.0_netbsd-amd64.tar.gz 0.103.0 netbsd amd64 FALSE hugo_0.103.0_openbsd-amd64.tar.gz 0.103.0 openbsd amd64 FALSE hugo_0.103.0_windows-amd64.zip 0.103.0 windows amd64 FALSE hugo_0.103.0_windows-arm64.zip 0.103.0 windows arm64 FALSE hugo_extended_0.103.0_darwin-universal.tar.gz 0.103.0 darwin universal TRUE hugo_extended_0.103.0_Linux-64bit.tar.gz 0.103.0 Linux 64bit TRUE hugo_extended_0.103.0_linux-amd64.tar.gz 0.103.0 linux amd64 TRUE hugo_extended_0.103.0_linux-arm64.tar.gz 0.103.0 linux arm64 TRUE hugo_extended_0.103.0_windows-amd64.zip 0.103.0 windows amd64 TRUE
Dear Yihui, the Hugo extended site seems down (404), which is causing trouble to execute
install_hugo
command:Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
[x] formatted your issue so it is easier for us to read?
[x] used
blogdown::check_site()
function to diagnose your site and corrected potential problems?[x] included a minimal, self-contained, and reproducible example?
[x] pasted the output from
xfun::session_info('blogdown')
in your issue?[x] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
[x] installed and tested your bug with the development version of the blogdown package using
remotes::install_github('rstudio/blogdown')
?