当前位置: 技术问答>linux和unix
OpenSolaris 200805如何安装SUNWgcc
来源: 互联网 发布时间:2016-05-08
本文导语: 运行了好多次,每次都会出现同样的错误,我的Solaris可以上网的。 # pkg install SUNWgcc DOWNLOAD PKGS FILES XFER (MB) SUNWgcc ...
运行了好多次,每次都会出现同样的错误,我的Solaris可以上网的。
# pkg install SUNWgcc
DOWNLOAD PKGS FILES XFER (MB)
SUNWgcc 0/14 2/2354
3.74/171.53pkg: An unexpected error happened during installation:
timed out
The Boot Environment opensolaris failed to be updated. A snapshot was
taken before the failed attempt and is mounted here /tmp/tmp4UcADo.
Use 'beadm activate opensolaris_static:-:2008-06-12-03:17:29 and
reboot if you wish to boot to this BE.
Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1406, in main_func
return install(img, pargs)
File "/usr/bin/pkg", line 469, in install
img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py",
line 394, in execute
p.preexecute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py",
line 242, in preexecute
flist.get_files()
File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py",
line 176, in get_files
tar_stream.extract_to(info, path, filename)
File "/usr/lib/python2.4/vendor-packages/pkg/pkgtarfile.py", line
86, in extract_to
self._extract_member(tarinfo, os.path.join(
File "/usr/lib/python2.4/tarfile.py", line 1423, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/lib/python2.4/tarfile.py", line 1461, in makefile
copyfileobj(source, target)
File "/usr/lib/python2.4/tarfile.py", line 158, in copyfileobj
shutil.copyfileobj(src, dst)
File "/usr/lib/python2.4/shutil.py", line 22, in copyfileobj
buf = fsrc.read(length)
File "/usr/lib/python2.4/tarfile.py", line 558, in _readnormal
return self.__read(bytestoread)
File "/usr/lib/python2.4/tarfile.py", line 504, in __read
return self.fileobj.read(size)
File "/usr/lib/python2.4/tarfile.py", line 437, in read
buf = self._read(size)
File "/usr/lib/python2.4/tarfile.py", line 445, in _read
return self.__read(size)
File "/usr/lib/python2.4/tarfile.py", line 467, in __read
buf = self.fileobj.read(self.bufsize)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
File "/usr/lib/python2.4/httplib.py", line 480, in read
s = self.fp.read(amt)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
timeout: timed out
有没有什么好的方法啊?
# pkg install SUNWgcc
DOWNLOAD PKGS FILES XFER (MB)
SUNWgcc 0/14 2/2354
3.74/171.53pkg: An unexpected error happened during installation:
timed out
The Boot Environment opensolaris failed to be updated. A snapshot was
taken before the failed attempt and is mounted here /tmp/tmp4UcADo.
Use 'beadm activate opensolaris_static:-:2008-06-12-03:17:29 and
reboot if you wish to boot to this BE.
Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1406, in main_func
return install(img, pargs)
File "/usr/bin/pkg", line 469, in install
img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py",
line 394, in execute
p.preexecute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py",
line 242, in preexecute
flist.get_files()
File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py",
line 176, in get_files
tar_stream.extract_to(info, path, filename)
File "/usr/lib/python2.4/vendor-packages/pkg/pkgtarfile.py", line
86, in extract_to
self._extract_member(tarinfo, os.path.join(
File "/usr/lib/python2.4/tarfile.py", line 1423, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/lib/python2.4/tarfile.py", line 1461, in makefile
copyfileobj(source, target)
File "/usr/lib/python2.4/tarfile.py", line 158, in copyfileobj
shutil.copyfileobj(src, dst)
File "/usr/lib/python2.4/shutil.py", line 22, in copyfileobj
buf = fsrc.read(length)
File "/usr/lib/python2.4/tarfile.py", line 558, in _readnormal
return self.__read(bytestoread)
File "/usr/lib/python2.4/tarfile.py", line 504, in __read
return self.fileobj.read(size)
File "/usr/lib/python2.4/tarfile.py", line 437, in read
buf = self._read(size)
File "/usr/lib/python2.4/tarfile.py", line 445, in _read
return self.__read(size)
File "/usr/lib/python2.4/tarfile.py", line 467, in __read
buf = self.fileobj.read(self.bufsize)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
File "/usr/lib/python2.4/httplib.py", line 480, in read
s = self.fp.read(amt)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
timeout: timed out
有没有什么好的方法啊?
|
OpenSolaris的IPS目前好像还不支持断点续传,所以如果安装包很大的话,可能会出现time out的错误,特别是使用代理服务器访问。
建议将PKG_CLIENT_TIMEOUT设大一些,看能否成功,并且尽量不要使用代理服务器。
建议将PKG_CLIENT_TIMEOUT设大一些,看能否成功,并且尽量不要使用代理服务器。