WHILE , I got this output from -d self update.
Output -DEBUG: Copying
/Users/shuvayan/Library/Preferences/com.apple.dt.Xcode.plist to
/opt/local/var/macports/home/Library/Preferences
Version number in metadata table is newer than expected.
while executing
"registry::open $db_path"
(procedure "mportinit" line 642)
invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, Version number in
metadata table is newer than expected.