在Windows 10中安装PostgreSQL时出错

2024-10-03 23:22:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试从那里的官方网站安装PostgreSQL,在安装过程中,我发现一个错误:

Error running icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_somenumberhere"/T/Q/grant"USER:(OI)(CI)F":C:\Users\USER\AppData\Local\Temp/postgresql_installer_somenumberhere*:Acess is denied.

我查了日志文件得到了这个

Log started 09/22/2019 at 12:15:48
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Executing icacls "C:\Users\USER\AppData\Local\Temp/postgresql_installer_c064ff961e" /inheritance:r
Script exit code: 0 
Script output:
 processed file: C:\Users\USER\AppData\Local\Temp/postgresql_installer_c064ff961e
Successfully processed 1 files; Failed processing 0 files

脚本标准:

执行icacls“C:\Users\USER\AppData\Local\Temp/postgresql\u installer\u c064ff961e”/T/Q/grant“USER:(OI)(CI)F” 脚本退出代码:5

脚本输出: 已成功处理1个文件;处理1个文件失败

脚本标准: C:\Users\USER\AppData\Local\Temp/postgresql\u installer\u c064ff961e*:访问被拒绝。你知道吗

运行icacls时出错

"C:\Users\USER\AppData\Local\Temp/postgresql_installer_c064ff961e" /T /Q /grant "USER:(OI)(CI)F": C:\Users\USER\AppData\Local\Temp/postgresql_installer_c064ff961e*: Access is denied. Cannot delete file C:/Users/USER/AppData/Local/Temp/postgresql_installer_c064ff961e

在那之后,我尝试了管理员权限,使用了first solutionsecond solution它给了我一个错误1376,所以这个方法也失败了,我尝试了ICACLS方法,给了所有的权限,但我仍然无法解决它,有人能给我一些建议吗??你知道吗


Tags: 文件脚本cipostgresqllocalinstallerqtusers