Opened 9 years ago

Closed 9 years ago

#47787 closed defect (invalid)

How should I proceed? Problem updated "wxWidgets-3.0", Error: Unable to upgrade port: 1

Reported by: evan.biederstedt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port:

Description (last modified by larryv (Lawrence Velázquez))

I normally run sudo port selfupdate every few days. It runs fine. Except today.

The outdated port I have currently is found by command sudo port outdated, giving

wxWidgets-3.0                  3.0.2_1 < 3.0.2_2

Only one program.

So, I run sudo port selfupdate, followed by port upgrade outdated. The first command is fine. The latter throws this error:

~USER $ sudo port upgrade outdated
--->  Computing dependencies for wxWidgets-3.0
--->  Verifying checksums for wxWidgets-3.0
Error: org.macports.checksum for port wxWidgets-3.0 returned: wxWidgets-3.0.2.tar.bz2 does not exist in /opt/local/var/macports/distfiles/wxWidgets/3.0.2_1
Please see the log file for port wxWidgets-3.0 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Ok. So I try sudo port clean. I get this:

Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/USER").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.

So....should I reinstall macports? What has happened since the last time I ran sudo port selfupdate to cause this error? What did I do?

Change History (3)

comment:1 in reply to:  description ; Changed 9 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)

Replying to evan.biederstedt@…:

Ok. So I try sudo port clean.

You need to specify wxWidgets-3.0 explicitly.

sudo port clean wxWidgets-3.0

Otherwise MacPorts looks for a file named “Portfile” in the current working directory.

So....should I reinstall macports?

No.

What has happened since the last time I ran sudo port selfupdate to cause this error?

Somehow an installation of wxWidgets-3.0 was interrupted after the fetch phase. MacPorts thinks that the next step is checksumming wxWidgets-3.0.2.tar.bz2, but it really needs to start over and fetch the new distfile, which doesn’t exist yet. Cleaning will reset the relevant state, convincing MacPorts to start again from the beginning.

comment:2 in reply to:  1 ; Changed 9 years ago by evan.biederstedt@…

Replying to larryv@…:

Replying to evan.biederstedt@…:

Ok. So I try sudo port clean.

You need to specify wxWidgets-3.0 explicitly.

sudo port clean wxWidgets-3.0

Otherwise MacPorts looks for a file named “Portfile” in the current working directory.

This was the issue, and sudo port clean wxWidgets-3.0 works exactly. Thanks!

So....should I reinstall macports?

No.

What has happened since the last time I ran sudo port selfupdate to cause this error?

Somehow an installation of wxWidgets-3.0 was interrupted after the fetch phase. MacPorts thinks that the next step is checksumming wxWidgets-3.0.2.tar.bz2, but it really needs to start over and fetch the new distfile, which doesn’t exist yet. Cleaning will reset the relevant state, convincing MacPorts to start again from the beginning.

Now I understand. Thank you. This issue has been resolved, and can be closed.

comment:3 in reply to:  2 Changed 9 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed

Great!

Note: See TracTickets for help on using tickets.