Opened 17 years ago
Closed 15 years ago
#15056 closed defect (fixed)
Defects with macports install/uninstall/portfile/registry
Reported by: | lorddefinitia@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 1.8.0 |
Component: | base | Version: | 1.6.0 |
Keywords: | Install failure, activation failure, portfile failure | Cc: | |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I know little about the MacPorts structure, so I am rather helpless with understanding what exactly the bug is. My best attempt at describing my situation follows.
I was attempting to upgrade macports and my installed ports the other day, using port upgrade all, not realizing that all meant all possible ports. I cancelled the process a couple hours(I went away to do other tasks) later, when my hard drive was nearly full, and performed port clean all to attempt to clean out whatever had been left around by the unfinished process. I then attempted a port upgrade installed, however this command too failed due to limited HD space and the subsequent clean operation I performed failed as well due the same reasons. As I had no immediate space available, I resorted to manually deleting the files that had been most recently created on the computer which I could be sure were only macports related files.
However after having free up my drive in this manner and later freeing it up more through other methods, I have been getting frequents errors such as this one:
Error: Target org.macports.activate returned: Image error: /opt/local/lib/libopencdk.10.0.6.dylib already exists and does not belong to a registered port. Unable to activate port opencdk.
or
---> Fetching libtasn1 ---> Attempting to fetch libtasn1-1.3.tar.gz from http://www.gnu.org/software/gnutls/releases/libtasn1/ ---> Verifying checksum(s) for libtasn1 ---> Extracting libtasn1 ---> Configuring libtasn1 ---> Building libtasn1 with target all ---> Staging libtasn1 into destroot ---> Installing libtasn1 1.3_0 ---> Activating libtasn1 1.3_0 Error: Target org.macports.activate returned: Registry error: libtasn1 @1.2_0 not registered as installed.
In addition, port list installed fails with an error like this one:
Error: /opt/local/bin/port: port installed failed: Registry error: gnutls @2.2.0_0 not registered as installed.
Which I have been trying to fix by installing the uninstalled package, which then complains a previous version is not installed and so the new version can't be activated, or an image already exists and so it can't be installed, or some such error. However, after I have done this, port list installed no longer has a problem with the port that could not be installed.
Unfortunately this was working until I was unable to install one of these non-installed packages due to dependencies that won't install.
In addition, it says there is a problem with my portfile in my home directory?
Change History (5)
comment:1 Changed 17 years ago by rhwood@…
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:3 Changed 16 years ago by tobypeterson
Milestone: | MacPorts base bugs → MacPorts Future |
---|
Milestone MacPorts base bugs deleted
comment:4 Changed 16 years ago by blb@…
Component: | ports → base |
---|
comment:5 Changed 15 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future → MacPorts 1.8.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Most likely there were receipt directories with no receipt file, which means this would be fixed by r51138.
Can you try the following on a periodic basis:
sudo port -f uninstall inactive sudo port clean --all all
This will free up space on your hard drive
sudo rm -r /opt/local/var/macports/receipts/libtasn1 sudo rm -r /opt/local/var/macports/receipts/gnutls
should then clean up those ports