当前位置:论坛首页 > Linux面板 > 求助

【已回应】某个服务器的预装系统死活一天装不上宝塔,请.

发表在 Linux面板2018-11-26 09:09 [复制链接] 7 1595

本帖最后由 大炮运维V587 于 2018-11-26 14:13 编辑

我预装了服务器的ubuntu 16,然后安装完毕宝塔后,不能进入面板。
安装中反复出现一个错误信息error: invalid command 'bdist_wheel'
完整的安装记太长,求帮忙
-------------------

使用道具 举报 只看该作者 回复
发表于 2018-11-26 10:01:17 | 显示全部楼层
应该是pip源的问题。更改是那个豆瓣源就没啥问题,
更改的方式如下:

[root@localhost panel]# cat /root/.pip/pip.conf
  1. [global]
  2. index-url = <a href="https://pypi.doubanio.com/simple/" target="_blank">https://pypi.doubanio.com/simple/</a>

  3. [install]
  4. trusted-host=pypi.doubanio.com
复制代码


就是把如上的信息写入到  /root/.pip/pip.conf 文件下
使用道具 举报 回复 支持 反对
发表于 2018-11-26 10:54:02 | 显示全部楼层
本帖最后由 tanjian 于 2018-11-26 12:51 编辑

楼上大牛,我按照你说的这么操作,还是没成功:
mkdir  /root/.pip/
nano /root/.pip/pip.conf
然后写入
    [global]
    index-url = <a href="https://pypi.doubanio.com/simple/" target="_blank">https://pypi.doubanio.com/simple/</a>

    [install]
    trusted-host=pypi.doubanio.com
再保存后运行安装脚本:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh


最后安装不成功。部分日志如下
...
File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /root/.pip/pip.conf, line: 1
...
使用道具 举报 回复 支持 反对
发表于 2018-11-26 10:54:53 | 显示全部楼层
86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=522 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so
building 'psutil._psutil_posix' extension

使用道具 举报 回复 支持 反对
发表于 2018-11-26 10:55:27 | 显示全部楼层

building 'psutil._psutil_posix' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=522 -DPSUTIL_LINUX=1 -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -o build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so
running install_lib

使用道具 举报 回复 支持 反对
发表于 2018-11-26 11:00:06 | 显示全部楼层
我使用的是krypt的服务器,对了,他们服务器的
/etc/resolv.conf
文件内容是:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 209.11.240.36
nameserver 8.8.8.8

有影响吗?求帮忙,一直安装不上宝塔已经快一天了。
使用道具 举报 回复 支持 反对
发表于 2018-11-26 12:52:32 | 显示全部楼层
顶顶啊,帮忙啊,以前用了很久,现在用不了宝塔,难道只能换了。
使用道具 举报 回复 支持 反对
发表于 2018-11-26 14:12:58 | 显示全部楼层
私信发下您的ssh信息,发完回复下我,这样可以在第一时间看到。感谢您对宝塔的支持!
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表