| View previous topic :: View next topic |
| Author |
Message |
rootor n00b


Joined: 05 Dec 2011 Posts: 25
|
Posted: Thu Feb 09, 2012 9:41 am Post subject: mirrorselect:: can not get mirrorlists |
|
|
I install Gentoo follow the Handbook:http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap6
But when I run:
| Code: | | mirrorselect -i -o >> /mnt/gentoo/etc/make.conf |
I get:
| Code: | livecd ~ # mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
* Downloading a list of mirrors...Traceback (most recent call last):
File "/usr/sbin/mirrorselect", line 888, in <module>
main(sys.argv)
File "/usr/sbin/mirrorselect", line 875, in main
hosts = Extractor(MIRRORS_3_XML, options).hosts
File "/usr/sbin/mirrorselect", line 153, in __init__
hosts = self.getlist(parser, list_url)
File "/usr/sbin/mirrorselect", line 195, in getlist
parser.parse(urllib.urlopen(url).read())
File "/usr/lib64/python2.7/site-packages/mirrorselect/mirrorparser3.py", line 37, in parse
for mirrorgroup in ET.XML(text):
File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1281, in XML
parser = XMLParser(target=TreeBuilder())
File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1447, in __init__
"No module named expat; use SimpleXMLTreeBuilder instead"
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
|
And mirrorselect -D -s4 still does not work |
|
| Back to top |
|
 |
Ant P. Veteran

Joined: 18 Apr 2009 Posts: 1919 Location: UK
|
Posted: Thu Feb 09, 2012 12:34 pm Post subject: |
|
|
| Post the output of "emerge -pv python:2.7" |
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 232
|
|
| Back to top |
|
 |
rootor n00b


Joined: 05 Dec 2011 Posts: 25
|
Posted: Fri Feb 10, 2012 1:16 am Post subject: |
|
|
| Ant P. wrote: | | Post the output of "emerge -pv python:2.7" |
After chroot
| Code: | #emerge -pv python:2.7
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-devel/autoconf-wrapper-10-r1 0 kB
[ebuild N ] sys-devel/automake-wrapper-5 0 kB
[ebuild N ] dev-util/pkgconfig-0.26 USE="-hardened" 388 kB
[ebuild N ] sys-devel/m4-1.4.15 USE="-examples" 925 kB
[ebuild N ] dev-perl/Locale-gettext-1.50.0 8 kB
[ebuild N ] sys-devel/autoconf-2.68 USE="-emacs" 1,350 kB
[ebuild N ] sys-apps/help2man-1.38.2 USE="nls" 134 kB
[ebuild N ] sys-devel/automake-1.11.1 1,042 kB
[ebuild N ] sys-devel/libtool-2.4-r1 USE="-test -vanilla" 833 kB
[ebuild R ] dev-lang/python-2.7.2-r3 USE="gdbm* ipv6* ncurses* readline* ssl* threads* (wide-unicode) xml* -berkdb -build* -doc -examples -sqlite -tk -wininst" 11,494 kB
Total: 10 packages (9 new, 1 reinstall), Size of downloads: 16,170 kB
|
|
|
| Back to top |
|
 |
rootor n00b


Joined: 05 Dec 2011 Posts: 25
|
Posted: Fri Feb 10, 2012 1:24 am Post subject: |
|
|
| iamben wrote: | | https://bugs.gentoo.org/show_bug.cgi?id=399331 |
How to solve it?
Just wait for the next version of stage3 ?
I have write GENTOO_MIRRORS and SYNC to make.conf, but I still can't emerge gentoo-sources
| Code: | >>> Installing (1 of 1) sys-kernel/gentoo-sources-3.2.1-r2
Traceback (most recent call last):
File "/usr/lib64/portage/pym/portage/dbapi/_MergeProcess.py", line 188, in _spawn
prev_mtimes=self.prev_mtimes, counter=counter)
File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4401, in merge
counter=counter)
File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3781, in treewalk
preserve_paths=preserve_paths)
File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1915, in unmerge
phase.start()
File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 24, in start
self._start()
File "/usr/lib64/portage/pym/_emerge/EbuildPhase.py", line 120, in _start
self._start_lock()
File "/usr/lib64/portage/pym/_emerge/EbuildPhase.py", line 140, in _start_lock
self._start_ebuild()
File "/usr/lib64/portage/pym/_emerge/EbuildPhase.py", line 169, in _start_ebuild
self._start_task(ebuild_process, self._ebuild_exit)
File "/usr/lib64/portage/pym/_emerge/CompositeTask.py", line 146, in _start_task
task.start()
File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 24, in start
self._start()
File "/usr/lib64/portage/pym/_emerge/AbstractEbuildProcess.py", line 106, in _start
SpawnProcess._start(self)
File "/usr/lib64/portage/pym/_emerge/SpawnProcess.py", line 125, in _start
retval = self._spawn(self.args, **kwargs)
File "/usr/lib64/portage/pym/_emerge/EbuildProcess.py", line 21, in _spawn
actionmap=actionmap, **kwargs)
File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 102, in _doebuild_spawn
return spawn(cmd, settings, **kwargs)
File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 1419, in spawn
return spawn_func(mystring, env=mysettings.environ(), **keywords)
File "/usr/lib64/portage/pym/portage/process.py", line 67, in spawn_bash
return spawn(args, opt_name=opt_name, **keywords)
File "/usr/lib64/portage/pym/portage/process.py", line 245, in spawn
pid = os.fork()
File "/usr/lib64/portage/pym/portage/__init__.py", line 230, in __call__
rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 12] Cannot allocate memory
>>> Failed to install sys-kernel/gentoo-sources-3.2.1-r2, Log file:
>>> '/var/tmp/portage/sys-kernel/gentoo-sources-3.2.1-r2/temp/build.log'
* Messages for package sys-kernel/gentoo-sources-3.2.1-r2:
* This profile is merely a convenience for people who require a more
* minimal profile, yet are unable to use hardened due to restrictions in
* the software being used on the server. If you seek a secure
* production server profile, please check the Hardened project
* (http://hardened.gentoo.org)
* GNU info directory index is up-to-date.
|
|
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 232
|
Posted: Fri Feb 10, 2012 1:26 am Post subject: |
|
|
| That looks like a separate issue. Is this on a low-memory VM with no swap? |
|
| Back to top |
|
 |
rootor n00b


Joined: 05 Dec 2011 Posts: 25
|
Posted: Fri Feb 10, 2012 2:45 am Post subject: |
|
|
| iamben wrote: | | That looks like a separate issue. Is this on a low-memory VM with no swap? |
NO, It has swap, and the RAM is 512M |
|
| Back to top |
|
 |
piremi n00b


Joined: 27 Feb 2010 Posts: 14 Location: Vancouver,BC,Canada
|
Posted: Tue Feb 28, 2012 7:28 am Post subject: add manually |
|
|
Add above manually in make.conf.
I don't know why but I have experienced same thing before.
I just added this for the installation stage.
and after chroot,
emerge mirrorselect and try it again. It will work without error as mine did.
I would like to know the reason if anybody knows.  _________________ Many curry favor with a ruler, and everyone is the friend of a man who gives gifts.
-Proverbs 19:6- |
|
| Back to top |
|
 |
ESF n00b


Joined: 18 Aug 2006 Posts: 31 Location: /proc/1077
|
Posted: Thu Jun 14, 2012 9:20 am Post subject: |
|
|
| iamben wrote: | | That looks like a separate issue. Is this on a low-memory VM with no swap? |
Just for the record, (sorry for bubbling up this post)
That was the solution in my particular case. (I wuz running a chroot on a VM with no swap activated.)
Just thought that if anyone had the same problem should keep an eye on this issue first.
Thanks. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|