You are not logged in.

#1 2020-08-16 17:26:16

yoyou446
Member
From: USA
Registered: 2019-08-06
Posts: 13

Gnome Package Rewrote /etc/profile

I've been working off of Sway for the past year or so. I wanted to have a Xorg native environment (I have a hidpi monitor and xwayland on sway doesn't scale properly) so I installed gnome (I use the Xorg version). I couldn't open any of my snapcraft applications afterwords. I look at /etc/profile and its been completely rewritten.

I pulled gnome from the common package. Just used `sudo pacman -S gnome`. The only other package I installed was an AUR called `evesetup` which shouldn't have touched anything in /etc/.

Last edited by yoyou446 (2020-08-16 17:33:27)

Offline

#2 2020-08-16 17:31:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,649
Website

Re: Gnome Package Rewrote /etc/profile

What is '/etc/path'? It isn't provided by any official repo package, and there's no mention of it on the wiki.


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

#3 2020-08-16 17:33:05

yoyou446
Member
From: USA
Registered: 2019-08-06
Posts: 13

Re: Gnome Package Rewrote /etc/profile

I'm sorry I ment /etc/profile. I'm fixing it now

Offline

#4 2020-08-16 18:06:59

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: Gnome Package Rewrote /etc/profile

Let's start with the basics:

pacman -Qo /etc/profile

This should be owned by filesystem.

Next, what exactly do you mean by "completely rewritten"? Post the contents.

Third: do you have .pacsave file(s) around for /etc/profile? What makes you sure that it was changed by a package?

Offline

#5 2020-08-20 19:00:38

yoyou446
Member
From: USA
Registered: 2019-08-06
Posts: 13

Re: Gnome Package Rewrote /etc/profile

It's owned by the filesystem. I'm also getting pulseaudio issues. I can't be sure it was changed directly from the package. I think it was probably one of its dependencies but my installing of `gnome` is the only thing that was changed.

When I type 'echo $PATH' I get '/usr/local/bin:/usr/local/sbin:/usr/bin'. My '~/.profile' however has 'PATH=$PATH:~/opt/bin' and 'PATH=$PATH:~/go/bin' in there. So bash is somehow skipping over my home .profile. My home directory is the same. My `$HOME` is the same. `whoami` prints my username. Even when I type 'bash'  and relaunch it in the home directory it still passes over my '~/.profile'. It's also reconfigured PulseAudio. I had Bluetooth working on Sway. I downloaded 'gnome' and while I can still connect through 'bluetoothctl' and my headphones say 'connected' but PulseAudio doesn't recognise any new output devices except my inbuilt speakers. I've rechecked all the configs too.

Last edited by yoyou446 (2020-08-20 19:28:37)

Offline

#6 2020-08-20 19:13:32

loqs
Member
Registered: 2014-03-06
Posts: 19,047

Re: Gnome Package Rewrote /etc/profile

Why do you think /etc/profile has been altered when your issue is with ~/.profile?  Does `pacman -Qkk filesystem` show:

backup file: filesystem: /etc/profile (Modification time mismatch)
backup file: filesystem: /etc/profile (Size mismatch)

https://wiki.archlinux.org/index.php/Ba … tion_files

Offline

#7 2020-08-20 19:26:31

yoyou446
Member
From: USA
Registered: 2019-08-06
Posts: 13

Re: Gnome Package Rewrote /etc/profile

I think /etc/profile has been altered because I had altered it. I had manually added more paths (e.g. /sbin/). Those paths that I added are no longer there. I always add a comment to any config I edit with my username, date, and time. My snapcraft path is also missing and is not showing up when I type `echo $PATH`.

pacman -Qkk filesystem


warning: filesystem: /etc/arch-release (Modification time mismatch)
warning: filesystem: /etc/arch-release (Size mismatch)
backup file: filesystem: /etc/fstab (Modification time mismatch)
backup file: filesystem: /etc/fstab (Size mismatch)
backup file: filesystem: /etc/group (Modification time mismatch)
backup file: filesystem: /etc/group (Size mismatch)
backup file: filesystem: /etc/gshadow (Modification time mismatch)
backup file: filesystem: /etc/gshadow (Size mismatch)
backup file: filesystem: /etc/hosts (Modification time mismatch)
backup file: filesystem: /etc/hosts (Size mismatch)
backup file: filesystem: /etc/passwd (Modification time mismatch)
backup file: filesystem: /etc/passwd (Size mismatch)
backup file: filesystem: /etc/profile (Modification time mismatch)
backup file: filesystem: /etc/profile (Size mismatch)
backup file: filesystem: /etc/resolv.conf (Modification time mismatch)
backup file: filesystem: /etc/resolv.conf (Size mismatch)
backup file: filesystem: /etc/shadow (Modification time mismatch)
backup file: filesystem: /etc/shadow (Size mismatch)
backup file: filesystem: /etc/shells (Modification time mismatch)
backup file: filesystem: /etc/shells (Size mismatch)
filesystem: 116 total files, 1 altered file

Last edited by yoyou446 (2020-08-20 19:29:55)

Offline

#8 2020-08-20 19:32:28

loqs
Member
Registered: 2014-03-06
Posts: 19,047

Re: Gnome Package Rewrote /etc/profile

Please post the full contents of /var/log/pacman.log.  See the tip box from pastebin.
Please use code tags for commands and their outputs.

sbin is a symlink to /usr/bin which is in the default path.

Offline

#9 2020-08-20 20:01:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,733

Re: Gnome Package Rewrote /etc/profile

~/.profile is only sourced by bash if bash is a login shell, try "bash --login"

What brings us to the next question: did you "Just use[d] `sudo pacman -S gnome`" or did the login process also change (eg. gnome installs GDM) and how do you login to begin with?
What's $PATH on a console login (w/o gnome)?

Offline

#10 2020-08-20 23:05:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Gnome Package Rewrote /etc/profile

You added /sbin/ to $PATH? Sounds like this isn't Arch, as /sbin is just a symlink on Arch.

Offline

#11 2020-08-20 23:11:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Gnome Package Rewrote /etc/profile

Scimmia wrote:

You added /sbin/ to $PATH? Sounds like this isn't Arch, as /sbin is just a symlink on Arch.

yoyuou output wrote:
warning: filesystem: /etc/arch-release (Modification time mismatch)
warning: filesystem: /etc/arch-release (Size mismatch)

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2020-08-21 01:04:07

yoyou446
Member
From: USA
Registered: 2019-08-06
Posts: 13

Re: Gnome Package Rewrote /etc/profile

-`                    ********@******.*****
                  .o+`                   ----------------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: HP Spectre Folio
               `+oooooo:                 Kernel: 5.8.1-arch1-1
               -+oooooo+:                Uptime: 6 hours, 21 mins
             `/:-:++oooo+:               Packages: 1096 (pacman), 11 (snap)
            `/++++/+++++++:              Shell: bash 5.0.18
           `/++++++++++++++:             Resolution: 3840x2160
          `/+++ooooooooooooo/`           WM: sway
         ./ooosssso++osssssso+`          Theme: Adwaita [GTK2/3]
        .oossssso-````/ossssss+`         Icons: Adwaita [GTK2/3]
       -osssssso.      :ssssssso.        Terminal: kitty
      :osssssss/        osssso+++.       CPU: Intel i7-8565U (8) @ 4.600GHz
     /ossssssss/        +ssssooo/-       GPU: Intel UHD Graphics 620
   `/ossssso+/:-        -:/+osssso+-     Memory: 3266MiB / 15621MiB
  `+sso+:-`                 `.-/+oso:
`++:.                           `-/+/                           
.`                                 `/

Offline

#13 2020-09-07 15:58:05

yoyou446
Member
From: USA
Registered: 2019-08-06
Posts: 13

Re: Gnome Package Rewrote /etc/profile

Fixed it by taking the profile of another arch install and running the snap.sh script

Offline

Board footer

Powered by FluxBB