by alexval1323 » Wed Feb 17, 2021 10:27 pm
Hey friends.
Now before I get the "just google it" response, I have. I have tried the obvious solution and much much more.
I am working on a Stratix10 Development board running Angstrom Linux distro (aarch64) and as such have to pretty much everything from scratch. I have installed all the necessary packages to run pacman and got it up and running after maybe an hour of work.
Now that I have pacman, I tested it by trying to install sudo (seemed like a good place to start). Running the command $this->bbcode_second_pass_code('', 'pacman -S sudo'). It presents me with the classic "*** exists in filesystem" error. Now the solution is to "--overwrite <glob>". This takes care of 99% of the conflicts....but sadly not all of them.
It still presents the error:
$this->bbcode_second_pass_quote('', 'e')rror: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem
filesystem: /lib exists in filesystem
filesystem: /sbin exists in filesystem
filesystem: /usr/sbin exists in filesystem
filesystem: /var/lock exists in filesystem
I have tried now for 2 days with no way to get around this and to be honest it really doesn't make sense to me. Of course /bin is in the filesystem.....it has to be. And for this specific project, security and "messing up the system" is not a huge concern. This is more a right now band-aid to get a demo up and running and this whole system will not be used after that.
The obvious solutions I have tried to solve this. (I understand that a lot of these do the exact same thing, but I'm getting desperate here

):
$this->bbcode_second_pass_quote('', 'p')acman -Syu sudo--overwrite '*'
pacman -Syu sudo --overwrite '/*'
pacman -Syu sudo --overwrite '\*'
pacman -Syu sudo --overwrite '/'
pacman -Syu sudo --overwrite '/bin' --overwrite '*'
(^^ and then add --overwrite /lib, /sbin ..and all the other dirs in the error above)
At this point I even tried going back to pacman 4.2.1 so that I could have access to the --force flag. (the above overwrite options should do the exact same thing as --force) I thought maybe this might have some deep core difference in functionality but it doesn't. It does however, give a slightly different error msg (adding the second line):
$this->bbcode_second_pass_quote('', '&')quot;error: failed to commit transaction (conflicting files)