devkitPro / pacman

GNU General Public License v2.0
169 stars 16 forks source link

Can't install pacman on WSL Debian #19

Closed V10lator closed 4 years ago

V10lator commented 4 years ago
# dpkg -i /mnt/c/Users/V10lator/Downloads/devkitpro-pacman.deb
Selecting previously unselected package devkitpro-pacman.
(Reading database ... 9861 files and directories currently installed.)
Preparing to unpack .../Downloads/devkitpro-pacman.deb ...
Unpacking devkitpro-pacman (1.0.1) ...
Setting up devkitpro-pacman (1.0.1) ...
==> ERROR: Cannot find the gpg binary required for all pacman-key operations.
==> ERROR: Cannot find the gpg binary required for all pacman-key operations.
/opt/devkitpro/pacman/bin/pacman: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
dpkg: error processing package devkitpro-pacman (--install):
 installed devkitpro-pacman package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 devkitpro-pacman

//EDIT: Now this was fixed with apt-get install gpg xml2 but a new problem arises:

# dpkg -i /mnt/c/Users/V10lator/Downloads/devkitpro-pacman.deb
(Reading database ... 10567 files and directories currently installed.)
Preparing to unpack .../Downloads/devkitpro-pacman.deb ...
Unpacking devkitpro-pacman (1.0.1) over (1.0.1) ...
Setting up devkitpro-pacman (1.0.1) ...
gpg: /opt/devkitpro/pacman/etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/opt/devkitpro/pacman/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key B3361350EAC1541B marked as ultimately trusted
gpg: directory '/opt/devkitpro/pacman/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/opt/devkitpro/pacman/etc/pacman.d/gnupg/openpgp-revocs.d/8384C272E35BCE51FE4692E1B3361350EAC1541B.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
==> Appending keys from devkitpro.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signing key 032F4C9D0B8FF3BC84019B7862C7609ADA219C60...
  -> Locally signing key BC26F752D25B92CE272E0F44F7FD5492264BB9D0...
==> Importing owner trust values...
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   2  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   2  signed:   0  trust: 0-, 0q, 0n, 2m, 0f, 0u
:: Synchronizing package databases...
error: failed retrieving file 'dkp-libs.db' from downloads.devkitpro.org :
error: failed to update dkp-libs (download library error)
error: failed retrieving file 'dkp-linux.db' from downloads.devkitpro.org :
error: failed to update dkp-linux (download library error)
error: failed to synchronize all databases
dpkg: error processing package devkitpro-pacman (--install):
 installed devkitpro-pacman package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 devkitpro-pacman

What dependency am I missing now and why doesn't the .deb do dependency management on its own?

//EDIT²: Fixed with apt-get install curl wget but it feels unsave as I have no idea if there are still some missing deps.

//EDIT³: After all that the installation was corrupted, so I tried to completely delete it with apt-get remove devkitpro-pacman && rm -rf /opt/devkitpro but now I can't reinstall it:

# dpkg -i /mnt/c/Users/V10lator/Downloads/devkitpro-pacman.deb
Selecting previously unselected package devkitpro-pacman.
(Reading database ... 10694 files and directories currently installed.)
Preparing to unpack .../Downloads/devkitpro-pacman.deb ...
Unpacking devkitpro-pacman (1.0.1) ...
Setting up devkitpro-pacman (1.0.1) ...
==> ERROR: pacman configuration file '/opt/devkitpro/pacman/etc/pacman.conf' not found.
==> ERROR: pacman configuration file '/opt/devkitpro/pacman/etc/pacman.conf' not found.
error: config file /opt/devkitpro/pacman/etc/pacman.conf could not be read: No such file or directory
dpkg: error processing package devkitpro-pacman (--install):
 installed devkitpro-pacman package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 devkitpro-pacman

//EDIT⁴: Fixed with:

dpkg -i /mnt/c/Users/V10lator/Downloads/devkitpro-pacman.deb # So debian sees it as installed again
rm -rf /opt/devkitpro && dpkg --purge devkitpro-pacman # This seems to be the only way to cleanly uninstall...
dpkg -i /mnt/c/Users/V10lator/Downloads/devkitpro-pacman.deb # The final, clean installation

But that was a real hassle...

//EDIT⁵: Was to fast with this, it's still not working / files are missing:

# ls /opt/devkitpro/tools/bin
ls: cannot access '/opt/devkitpro/tools/bin': No such file or directory

Also no pacman in $PATH but:

$ ls /opt/devkitpro/
pacman
$ ls /opt/devkitpro/pacman/
bin  etc  include  lib  share  var
$ ls /opt/devkitpro/pacman/bin/
cleanupdelta  makepkg-template  pacman-conf        pacman-key  repo-add       repo-remove  vercmp
makepkg       pacman            pacman-db-upgrade  pkgdelta    repo-elephant  testpkg
$ echo $PATH
/opt/devkitpro/tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/TheDebianProject.DebianGNULinux_1.1.8.0_x64__76v4gfsz19hv4:/mnt/c/Program Files/Python38/Scripts/:/mnt/c/Program Files/Python38/:/mnt/c/Program Files (x86)/Intel/TXE Components/TCS/:/mnt/c/Program Files/Intel/TXE Components/TCS/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program Files/Intel/TXE Components/DAL/:/mnt/c/Program Files (x86)/Intel/TXE Components/DAL/:/mnt/c/Program Files/Intel/TXE Components/IPT/:/mnt/c/Program Files (x86)/Intel/TXE Components/IPT/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/V10lator/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files (x86)/FAHClient

//LAST EDIT: It's dkp-pacman, so my fault. Anyway, found another missing dependency: xz-utils. Without it pacman can't extract the packages..

fincs commented 4 years ago

Is there any reason why you're bothering with WSL Debian instead of installing the native Win32/Win64 binaries we provide?

(Also fwiw, I've locally tested on WSL Ubuntu and on a real Debian VM and I don't have any issues on either systems)

V10lator commented 4 years ago

Is there any reason why you're bothering with WSL Debian instead of installing the native Win32/Win64 binaries we provide?

Wii U development. I don't remeber the exact issue but something didn't work on Windows. Also I'm normally using Linux boxes, so working in WSL feels mucb more like being home.

(Also fwiw, I've locally tested on WSL Ubuntu and on a real Debian VM and I don't have any issues on either systems)

I guess every real Linux box has things like curl and xz-utils preinstalled.

What happens if you try to deinstall them (does the package manager tell you they are needed by devkitPro or will it remove them without a warning, leaving you with a corrupted install) ? ;)

//EDIT: Maybe this is also Debian package managers doing stupid things but none the less proper dependency handling is a bug in here.

WinterMute commented 4 years ago

Should be working fine with 1.0.2