You are not logged in.
You need to still remove the RootDir setting, update your system with `pacman -Syu base base-devel`, remove everything in /opt, then use `pacman -Qk` to find broken packages and reinstall them (edit:) reinstall anything that you had installed since changing RootDir.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
You need to still remove the RootDir setting, update your system with `pacman -Syu base base-devel`, remove everything in /opt, then use `pacman -Qk` to find broken packages and reinstall them.
Everything works with the RootDir setting removed, thank you for your help!
I will make sure to find time to read the Wiki so I'd get the hang of this. I still have to figure out the Linux filesystem hierarchy, otherwise I just see a lot of folders named the same. Hopefully this is a good source to read http://refspecs.linuxfoundation.org/FHS … index.html
Offline
Simply removing RootDir and not following the rest of the steps I listed will result in a complete disaster in the near future.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
Simply removing RootDir and not following the rest of the steps I listed will result in a complete disaster in the near future.
I've done all you said, nothing was reinstalled after running pacman -Qk tho.
Offline
I ran the command you gave with /opt/arch in pacman.conf, here`s the output: (…)
791 packages
. Well… you have nearly everything installed into “/opt/arch”. I believe reinstalling the system properly, as described in the official wiki, is the best solution now.
I deleted the SigLevel line from the xenlism server, is that better?
Since the default level specified by the global SigLevel is “Required” for packages and now xenlism repository inherits this value: yes, it’s better. “Better” in the sense that at least you can trust that the packages are really coming from xenlism developers. The question whether you want to trust them that much is still open.
This was the post I found suggesting to add /opt/arch https://github.com/FZUG/repo/issues/16
And you do realize that this is for a different operating system? Also the post says nothing about pointing RootDir to “/opt/arch” — it’s already set there.
I've done all you said, nothing was reinstalled after running pacman -Qk tho.
Because nothing will be reinstalled. Are you at least checking what commands that you execute in your terminal are doing, or are you blindly copypasting ’em? Another way to quickly break your system.
Last edited by mpan (2016-03-24 15:53:36)
Offline
I will make sure to find time to read the Wiki so I'd get the hang of this. I still have to figure out the Linux filesystem hierarchy, otherwise I just see a lot of folders named the same. Hopefully this is a good source to read http://refspecs.linuxfoundation.org/FHS … index.html
man file-hierarchy covers entries not in FHS 3.0
Offline
Welcome to Arch Linux
This whole thing seems like another cautionary tale about yaourt and third party tutorials. Had I seen this thread earlier, I'd have moved it to AUR issues. As it stands, it is a pretty good example of what can go wrong, so perhaps Newbie Corner is appropriate.
Is all of the above really easier than the basics? See how simple it can be:
ewaller@odin ~ 1039 %cd devel/build
ewaller@odin ~/devel/build 1040 %git clone http://aur.archlinux.org/thinkfan
Cloning into 'thinkfan'...
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 12 (delta 0), reused 12 (delta 0)
Unpacking objects: 100% (12/12), done.
Checking connectivity... done.
ewaller@odin ~/devel/build 1041 %cd thinkfan
ewaller@odin ~/devel/build/thinkfan 1042 %makepkg
==> Making package: thinkfan 0.9.2-3 (Thu Mar 24 09:39:20 PDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading thinkfan-0.9.2.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 323 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 39539 100 39539 0 0 18651 0 0:00:02 0:00:02 --:--:-- 37442
-> Found thinkfan.service
-> Found thinkpad_acpi.conf
==> Validating source files with sha256sums...
thinkfan-0.9.2.tar.gz ... Passed
thinkfan.service ... Passed
thinkpad_acpi.conf ... Passed
==> Extracting sources...
-> Extracting thinkfan-0.9.2.tar.gz with bsdtar
==> Starting build()...
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ewaller/devel/build/thinkfan/src
Scanning dependencies of target thinkfan
[ 16%] Building C object CMakeFiles/thinkfan.dir/thinkfan.c.o
[ 33%] Building C object CMakeFiles/thinkfan.dir/config.c.o
[ 50%] Building C object CMakeFiles/thinkfan.dir/message.c.o
[ 66%] Building C object CMakeFiles/thinkfan.dir/parser.c.o
[ 83%] Building C object CMakeFiles/thinkfan.dir/system.c.o
[100%] Linking C executable thinkfan
[100%] Built target thinkfan
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "thinkfan"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: thinkfan 0.9.2-3 (Thu Mar 24 09:39:33 PDT 2016)
ewaller@odin ~/devel/build/thinkfan 1043 %Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
[
Why do you believe yaourt isn’t a good idea? Do you mean “other helper is better” or “all AUR helpers are bad”? Except for using it without first understanding what AUR is, how it works and how to manually build packages, which is indeed a bad idea, the helpers are useful tools.
Apparently Yaourt is the worst https://wiki.archlinux.org/index.php/AU … ison_table Not a single [✓]
Offline
I've done all you said, nothing was reinstalled after running pacman -Qk tho.
Pacman -Qk will not reinstall anything - but the output will indicate which packages you *should* reinstall. More specifically, the following list should be reinstalled:
pacman -Qk | grep -v "0 missing"It's best to understand what that is doing before trying to just copy-paste a fix-it command, but to get you up and running, the "fix-it" command would use the output of the above to reinstall the needed packages:
pacman -S $(pacman -Qk | grep -v "0 missing")EDIT: See below, pacman -Qk is not a useful check for this. I stand corrected.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
Thank you all for the help, all seems to be well now.
@Trilby
I went ahead and reinstalled all the packages that had warnings with
pacman -Qk | grep -v "0 missing"it`s still saying that gdm, gnome-control-center and polkit has files missing even after having been reinstalled. Also what do lines with Permission denied mean, is it just that it`s unable to access them, because launching the command with sudo doesn`t output those warnings
sviests@Eriks-ThinkPad ~ pacman -Qk | grep -v "0 missing"
warning: gdm: /var/lib/gdm/.local/ (Permission denied)
warning: gdm: /var/lib/gdm/.local/share/ (Permission denied)
warning: gdm: /var/lib/gdm/.local/share/applications/ (Permission denied)
warning: gnome-control-center: /usr/share/polkit-1/rules.d/gnome-control-center.rules (Permission denied)
gdm: 498 total files, 3 missing files
gnome-control-center: 604 total files, 1 missing file
warning: polkit: /etc/polkit-1/rules.d/50-default.rules (Permission denied)
polkit: 155 total files, 1 missing file
sviests@Eriks-ThinkPad ~ Offline
Read that again.
Pacman -Qk will not reinstall anything - but the output will indicate which packages you *should* reinstall.
pacman -S is needed to install packages.
pacman -S $(pacman -Qk | grep -v "0 missing")If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr
Offline
In your position, I would never be able to fully trust my system to be in a stable and correctly installed state. Even if things seem to be working for now. In my opinion, you should reinstall it from scratch. If you do that, follow the official Installation guide (not some random guide or video on the internet) and refrain from using unofficial repositories and AUR helpers (at least until you fully understand how they work).
And just to reiterate: `pacman -Qk` will not reinstall anything.
Offline
*mod hat off*
I'm going to weigh in here. There's a lot of FUD regarding the effects of RootDir on a system. Installing packages to another root using RootDir will have no negative consequences on the original root (e.g. /) at all. /'s pacman database will not be touched (unless you explicitly set DBPath to /var/lib/pacman*), and the packages that are installed to RootDir will be independent of the packages installed to /. You can remove $RootDir outright with no negative consequences. If you are on btrfs and $RootDir is a subvolume, you can even boot it as an independent system.
In short, OP can remove /opt/arch and unset RootDir in pacman.conf, and continue as though nothing had happened. An -Syu would be recommended though.
* EDIT: Something that I didn't notice OP had done in this case.
Last edited by WorMzy (2016-03-25 11:14:59)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
But the OP has 791 packages installed to /opt. I didn't read through the whole list but some of these might be necessary to make the system boot and work. Attempting to remove that directory before reinstalling those packages could make matters worse.
If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr
Offline
If they are using a bootloader that looks in /opt/arch/boot for kernels, then yes, removing /opt/arch will cause problems. There's almost 0% chance someone can set that up accidentally though.
Last edited by WorMzy (2016-03-24 23:13:48)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Wormzy, the whole problem here was that the OP installed base-devel only under /opt/ But /opt/whatever/usr/bin wasn't in his path. So removing everything in OP would still leave the OP without anything from base-devel until he installed it on his real root.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
That's true, but that can be resolved with
# pacman -Syu base-devel(EDIT: assuming that RootDir has been unset in pacman.conf)
That base-devel was originally installed to the /opt/arch root does not matter.
Last edited by WorMzy (2016-03-24 23:24:46)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
That's true, but that can be resolved with
# pacman -Syu base base-devel(EDIT: assuming that RootDir has been unset in pacman.conf)
That base-devel was originally installed to the /opt/arch root does not matter.
Right. That's what we were trying to get at and get the OP to do. At least at a minimum.
If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr
Offline
Okay, but the talk about not trusting the / system, running 'pacman -Qk', and the number of packages OP has installed to /opt/arch are non sequiturs.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I had added the /opt/arch path only after I had set up and installed my system. Most of the packages installed in /opt/arch were already installed in the correct places, so it was a matter of reinstalling the ones that were only in /opt/arch. I removed the RootDir from pacman.conf, deleted the /opt/arch directory, then I went on to reinstall the missing packages from the output of
pacman -Qk | grep -v "0 missing"I also reinstalled the base and base-devel packages.
The system boots fine and it booted fine even before all of this.
Could someone explain the output from pacman -S $(pacman -Qk | grep -v "0 missing") from my last post, please?
@WorMzy
I didn't quite catch what you meant with the DBPath in pacman.conf. I do have it set to /var/lib/pacman/...
Last edited by Sviests (2016-03-25 08:40:36)
Offline
I had added the /opt/arch path only after I had set up and installed my system. Most of the packages installed in /opt/arch were already installed in the correct places, so it was a matter of reinstalling the ones that were only in /opt/arch.
Are you sure those packages that are in both locations are up to date now, on / ?
Could someone explain the output from pacman -S $(pacman -Qk | grep -v "0 missing") from my last post, please?
You mean the "Permission denied"?
It means that certain packages own files that are not accessible by the user, but most probably only by root, which appears to be correct; at least polkit raises the same warning for me.
@WorMzy
I didn't quite catch what you meant with the DBPath in pacman.conf. I do have it set to /var/lib/pacman/...
Well, the problem is, that the pacman database now believes any package that was (re-)installed during this misconfiguration now is in /opt/arch. If you had not explicitly set DBPath, it would have been set below /opt/arch. In this your case, I would suggest reinstalling the whole system, i.e. `pacman -Syu $(pacman -Qq)'.
EDIT: s/\$(pacman -Q)/\$(pacman -Qq)/
Last edited by respiranto (2016-03-25 10:41:36)
Offline
Right, well DBPath was set to /var/lib/pacman, so I should be ok then. At least, I am not getting any weird errors or other issues. I was just wondering about the output of pacman -Qk | grep -v "0 missing", where it says that there are missing files for gdm, gnome-control-center and polkit, although they've been reinstalled, all the packages before that had missing were reinstalled and they disappeared from the output.
Offline
Sorry, I might have expressed this confusingly. I meant, that in your case, where DBPath has been explicitly set, you should reinstall all your packages..
EDIT:
And as stated before, it is most unlikely, that the packages that are installed both below / and /opt/arch are of the same version, i.e. those below / are most probably out of date.
Last edited by respiranto (2016-03-25 10:39:06)
Offline
@WorMzy
I didn't quite catch what you meant with the DBPath in pacman.conf. I do have it set to /var/lib/pacman/...
Oh bother. I completely failed to see that earlier. I now understand why everyone was making a big deal out of it. Sorry for causing more confusion.
If DBPath was set while RootDir was, then you've been updating /'s pacman library, all along. Once you unset RootDir and try to reinstall the packages you installed to /opt/arch, you will get a lot of conflicting file errors because the old versions of the packages on / will not be tracked by pacman any longer, but pacman will want to override those files with the new ones. I recommend that you disregard my previous messages and reinstall.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
So my -Qk suggestion was valid afterall. But why reinstall. Just fix the actual problem caused by the bad instructions.
But it sounds like everything may in fact be fixed by now. So Sviests, is there any actual problem remaining? If so, could you kindly steer us all back on track to what you actually need help with here, if not, you could mark the thread as SOLVED.
EDIT: right, there's this:
I was just wondering about the output of pacman -Qk | grep -v "0 missing", where it says that there are missing files for gdm, gnome-control-center and polkit
Pacman -Qk can be a bit verbose. Not so much as -Qkk which will give a lot of warnings under perfectly normal conditions, but still a bit verbose. Generally, though, I don't know of a reason that -Qk would list missing files under normal conditions.
One easy thing to do first is clear your pacman cache or just remove those packages from the cache, then reinstall them. If the -Qk check still lists those files, we should check which files are actually missing from those packages (run pacman -Qk on just those packages and don't parse the output with grep: it will list all missing files). I don't, however, use any of the packages you mention - if anyone who does could check whether there might be a reason for them to have missing files that'd be useful.
I suspect that the missing files from these 3 packages is likely unrelated to the issues in this thread for two reasons: first, I gather these packages were installed before the change in RootDir, and second these were definitely not the only packages installed/updated in the new RootDir (so why would they be the only ones with missing files). So it might actually be best to start a new thread with a clean slate (but link back to this one for potentially relevant history). That new thread can investigate why these packages might be missing files, what those missing files are, and if it is actually anything to be concerned about.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online