termux-pacman / pacman-for-termux

Special configured pacman for termux.
https://termux-pacman.dev
MIT License
73 stars 6 forks source link

exists in filesystem #1

Closed Maxython closed 3 years ago

Maxython commented 3 years ago

At this point, pacman installs packages from the internet correctly, but the process stops when retrieving packages.

Basic error:

filesystem: /data/data/com.termux/files/usr/bin exists in filesystem
filesystem: /data/data/com.termux/files/usr/lib exists in filesystem

Other files or directories can also get into this error.

On the Internet they say that you need to delete these files, but in this case this is not a solution (bin and lib are system directories, and if termux works without bin, then there is no lib). They also say to use --overwrite, but it doesn't work.

The error is caused in the src/pacman/sync.c file in the sync_prepare_execute function in the if (alpm_trans_commit (...)) clause.

Maxython commented 3 years ago

Fixed problem with bin and lib system category. But another problem arose - a packet conflict.
Decision

Maxython commented 3 years ago

To solve the problem with package conflicts, need to use --overwrite. But so there is a chance to break the termux system.

Maxython commented 3 years ago

Package conflicts issue.