Im worked with different bioconductor packages and I have many problem like this. A solution was run the code in RCloud now PositCloud because I find a few libraries problems.
The error message you are showing suggest you are trying to install it using install.packages(). phyloseq is not in CRAN it has to be installed from Bioconductor