I'm trying to unmerge some packages. They all fail like this:
centaur ~ # emerge --unmerge arora
* This action can remove important packages! In order to be safer, use
* `emerge -pv --depclean <atom>` to check for reverse dependencies before
* removing packages.
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging www-client/arora-0.11.0...
* The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
* with exit value -1.
*
* The problem occurred while executing the ebuild file named
* 'arora-0.11.0.ebuild' located in the '/var/db/pkg/www-
* client/arora-0.11.0' directory. If necessary, manually remove the
* environment.bz2 file and/or the ebuild file located in that directory.
*
* Removal of the environment.bz2 file is preferred since it may allow the
* removal phases to execute successfully. The ebuild will be sourced and
* the eclasses from the current portage tree will be used when necessary.
* Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
* removal phases to be skipped entirely.
* Messages for package www-client/arora-0.11.0:
* The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
* with exit value -1.
*
* The problem occurred while executing the ebuild file named
* 'arora-0.11.0.ebuild' located in the '/var/db/pkg/www-
* client/arora-0.11.0' directory. If necessary, manually remove the
* environment.bz2 file and/or the ebuild file located in that directory.
*
* Removal of the environment.bz2 file is preferred since it may allow the
* removal phases to execute successfully. The ebuild will be sourced and
* the eclasses from the current portage tree will be used when necessary.
* Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
* removal phases to be skipped entirely.
Traceback (most recent call last):
File "/usr/bin/emerge", line 42, in <module>
retval = emerge_main()
File "/usr/lib/portage/pym/_emerge/main.py", line 1492, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/lib/portage/pym/_emerge/actions.py", line 2305, in action_uninstall
valid_atoms, ldpath_mtimes, ordered=ordered)
File "/usr/lib/portage/pym/_emerge/unmerge.py", line 507, in unmerge
scheduler=scheduler)
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 4509, in unmerge
ldpath_mtimes=ldpath_mtimes)
File "/usr/lib/portage/pym/portage/dbapi/vartree.py", line 2160, in unmerge
vartree=self.vartree)
File "/usr/lib/portage/pym/portage/package/ebuild/doebuild.py", line
793, in doebuild
fd_pipes=fd_pipes, returnpid=returnpid)
File "/usr/lib/portage/pym/portage/package/ebuild/doebuild.py", line
1261, in spawn
buf.fromfile(f, buffsize)
IOError: [Errno 5] Input/output error
centaur ~ # eix sys-apps/portage
[i] sys-apps/portage
Available versions: [P]2.1.6.7 2.1.6.13 2.1.7.17 2.1.8.3
(~)2.1.9 (~)2.1.9.1 (~)2.1.9.2 {M}(~)2.2_rc67 [M](~)2.2_rc77
[M](~)2.2_rc78 [M]**9999 {build doc epydoc linguas_pl python3 selinux}
Installed versions: 2.2_rc67(10:58:51 07/14/10)(-build -doc
-epydoc -linguas_pl -python3 -selinux)
Homepage: http://www.gentoo.org/proj/en/portage/index.xml
Description: Portage is the package management and
distribution system for Gentoo
centaur ~ # eselect python list
Available Python interpreters:
[1] python2.6 *
[2] python3.1
Any ideas?
Cheers,
Hilco
10-13-2010, 08:23 PM
Paul Hartman
emerge --unmerge fails
On Wed, Oct 13, 2010 at 2:05 PM, Hilco Wijbenga
<hilco.wijbenga@gmail.com> wrote:
> Hi all,
>
> I'm trying to unmerge some packages. They all fail like this:
> ** The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
> ** with exit value -1.
> **
> ** The problem occurred while executing the ebuild file named
> ** 'arora-0.11.0.ebuild' located in the '/var/db/pkg/www-
> ** client/arora-0.11.0' directory. If necessary, manually remove the
> ** environment.bz2 file and/or the ebuild file located in that directory.
> **
> ** Removal of the environment.bz2 file is preferred since it may allow the
> ** removal phases to execute successfully. The ebuild will be sourced and
> ** the eclasses from the current portage tree will be used when necessary.
As the error suggests, remove that file
(/var/db/pkg/www-client/arora-0.11.0/environment.bz2) and then try
again, it should hopefully work then.
See this bug for more info:
https://bugs.gentoo.org/show_bug.cgi?id=211833
10-13-2010, 09:43 PM
Hilco Wijbenga
emerge --unmerge fails
On 13 October 2010 13:23, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> On Wed, Oct 13, 2010 at 2:05 PM, Hilco Wijbenga
> <hilco.wijbenga@gmail.com> wrote:
>> Hi all,
>>
>> I'm trying to unmerge some packages. They all fail like this:
>
>
>> ** The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
>> ** with exit value -1.
>> **
>> ** The problem occurred while executing the ebuild file named
>> ** 'arora-0.11.0.ebuild' located in the '/var/db/pkg/www-
>> ** client/arora-0.11.0' directory. If necessary, manually remove the
>> ** environment.bz2 file and/or the ebuild file located in that directory.
>> **
>> ** Removal of the environment.bz2 file is preferred since it may allow the
>> ** removal phases to execute successfully. The ebuild will be sourced and
>> ** the eclasses from the current portage tree will be used when necessary.
>
> As the error suggests, remove that file
> (/var/db/pkg/www-client/arora-0.11.0/environment.bz2) and then try
> again, it should hopefully work then.
>
> See this bug for more info:
> https://bugs.gentoo.org/show_bug.cgi?id=211833
Nope, removing environment.bz2 doesn't make any difference. Also, note
that it's not just this package. I have the same problem for at least
2 others. It seems a pandemic. :-)
10-13-2010, 10:29 PM
Dean Matzkov
emerge --unmerge fails
Have you tried upgrading to the latest version of Portage 2.2? The
newest version in the tree is currently portage-2.2_rc95, while you're
still using portage-2.2_rc67. Perhaps there's a bug causing this that
was fixed in subsequent release?
10-13-2010, 10:40 PM
walt
emerge --unmerge fails
On 10/13/2010 12:05 PM, Hilco Wijbenga wrote:
Hi all,
I'm trying to unmerge some packages. They all fail like this:
Unmerging www-client/arora-0.11.0...
* The 'prerm' phase of the 'www-client/arora-0.11.0' package has failed
* with exit value -1.
Hm, well I'm just now updating my ~amd64 machine and I see that both python
and portage are about to be updated. I'm still with the 2.1.x portage, so
I can't comment on the version you're running. Were your python and portage
just recently updated?
Did you run python-updater after the upgrade? Perhaps the python ebuild does
that for you, I'm not sure. Anyway I'd run it again just to make sure.
This could be a new bug in portage, too. I'd suggest downgrading to your
previous portage version -- but I'm not sure how safe that is. Anyone else
know?