What does it mean when you get a message about something being 'foreign'?

So, after PARU, at the end I’m getting…

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [--------------------------------] 100%
(1/1) checking package integrity [--------------------------------] 100%
(1/1) loading package files [--------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------] 100%
:: Processing package changes…
(1/1) upgrading starsector [--------------------------------] 100%
:: Running post-transaction hooks…
(1/3) Arming ConditionNeedsUpdate…
(2/3) Checking which packages need to be rebuilt
foreign auto-cpufreq
foreign idlex
foreign starsector
foreign thonny
(3/3) Updating the desktop file MIME type cache…
[mark@mark-optiplex9020 ~]$

Is this something I need to address?

Thanks in advance.

Foreign means the packages are not “official” packages from the configured repos. Typically it means they are from the AUR.

1 Like

Yes, you need to rebuild those packages. At least three of them have python dependencies and Arch recently upgraded to Python 3.11.

See here for some assistance:

3 Likes

Looks like the command:

paru -S $(pacman -Qoq /usr/lib/python3.11) --rebuild

didn’t do the job. For sure, it looked like it worked, but this morning when I ran paru the same foreign packages appeared.

and running:

pacman -Qoq /usr/lib/python3.10

confirms those packages are still set to Python 3.10

Could it be these packages are fixed by the issuer to only run on the older version of python? That these packages contain 3.10 libraries as a bundle?

Oh :frowning_face:

Try removing them with sudo pacman -R package_name, deleting their folder in /home/$User/.cache/yay and then installing them again from the AUR with yay/paru.

2 Likes

I deleted those files, but under /home the next structure down is my personal directory, don’t see a structure like $User…

Probably don’t need those programs anyway, maybe won’t reinstall.

Sorry, by “$User” I meant your username. Deleting those folders in .cache/yay should ensure a cleanbuild (hopefully with Python 3.11) when/if you reinstall.

1 Like

I don’t see a structure like that, maybe in a different place?

[mark@mark-optiplex9020 ~]$ cd /home
[mark@mark-optiplex9020 home]$ cd mark
[mark@mark-optiplex9020 ~]$ ls -l
total 3365936
-rw-r–r-- 1 mark mark 0 Dec 29 19:16 cap_%d
drwxr-xr-x 2 mark mark 4096 Oct 2 2022 ‘Chart output’
drwxr-xr-x 2 mark mark 4096 Sep 29 2022 ‘Cowboy Videos’
drwxr-xr-x 33 mark mark 4096 Apr 21 18:30 ‘Current markets’
-rw-r–r-- 1 mark mark 187 Jan 5 12:49 derby.log
drwxr-xr-x 2 mark mark 12288 May 19 09:22 Desktop
drwxr-xr-x 3 mark mark 4096 May 2 10:58 Documents
-rw-r–r-- 1 mark mark 3446583445 Apr 8 00:06 ‘Dodgeball Unrated.mp4’
drwxr-xr-x 2 mark mark 12288 May 19 16:18 Downloads
-rw-r–r-- 1 mark mark 8153 Jul 25 2022 eos-log-tool.logs
-rw-r–r-- 1 mark mark 8153 Jul 25 2022 eos-log-tool.logs.bak
-rw-r–r-- 1 mark mark 28 Nov 2 2022 index.theme.pacsave
drwxr-xr-x 4 mark mark 4096 Oct 11 2022 ‘Intraday fib ratio projections’
drwxr-xr-x 2 mark mark 4096 Sep 15 2022 ‘Logarithmic cache’
drwxr-xr-x 2 mark mark 4096 Jul 10 2022 Miscellaneous
drwxr-xr-x 2 mark mark 4096 Apr 4 22:46 ‘MotiveWave Backup’
drwxr-xr-x 2 mark mark 4096 Nov 19 11:43 ‘MotiveWave Extensions’
drwxr-xr-x 2 mark mark 4096 Apr 7 00:30 Movies
drwxr-xr-x 2 mark mark 4096 Nov 11 2022 Music
drwxr-xr-x 4 mark mark 4096 Apr 11 21:06 Pictures
lrwxrwxrwx 1 mark mark 36 Jul 10 2022 “PlayOnLinux’s virtual drives” → /home/mark/.PlayOnLinux//wineprefix/
drwxr-xr-x 2 mark mark 4096 Jul 8 2022 Public
drwxr-xr-x 3 mark mark 4096 Feb 11 22:26 Python
drwxr-xr-x 2 mark mark 4096 Mar 2 15:18 Temp
drwxr-xr-x 2 mark mark 4096 Jul 8 2022 Templates
-rw-r–r-- 1 mark mark 617 Oct 9 2022 Untitled.ipynb
drwxr-xr-x 2 mark mark 4096 May 7 12:27 Videos
drwxr-xr-x 2 mark mark 4096 Mar 18 18:25 ‘woke bankers’
[mark@mark-optiplex9020 ~]$

If your username is mlytle0 then it would be /home/mlytle0/.cache/yay/whichever_AUR_package_name

.cache is a hidden folder which should show up with ls -a

1 Like

mark is the user name rather than mlytle0. Using the ls -a command gives this:

So in .cache, there may be a folder called yay. In this folder is the cache of files used when you built each AUR package. There may be a folder for each of auto-cpufreq, idlex, starsector and thonny. Delete each of those and then you can reinstall whichever ones you want from the AUR (as I said hopefully with Python 3.11).

If there is no yay folder in .cache, no need to worry, you can just reinstall those packages.

1 Like

It worked, here’s the final result:

Thanks for your help!

2 Likes

No problem :slightly_smiling_face:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.