F5F Stay Refreshed Software Operating Systems I suspect the apt-get command and xrdp keyboard layout were affected.

I suspect the apt-get command and xrdp keyboard layout were affected.

I suspect the apt-get command and xrdp keyboard layout were affected.

A
alerabbit
Posting Freak
840
08-10-2023, 11:01 PM
#1
I was experimenting with some console commands recently and suspect I might have messed up apt-get. Every time I try to install something, I end up with an error about the language setting. The installation logs show new packages being added but also warnings about missing dependencies and paths. I'm using the root account and still can't run dpkg or setxkbmap. My keyboard layout is supposed to be changed to pt-pt, but I keep getting a message that xkb is not installed. I've tried loading the pt keyset before, though it had issues in the past. Help would be really appreciated!
A
alerabbit
08-10-2023, 11:01 PM #1

I was experimenting with some console commands recently and suspect I might have messed up apt-get. Every time I try to install something, I end up with an error about the language setting. The installation logs show new packages being added but also warnings about missing dependencies and paths. I'm using the root account and still can't run dpkg or setxkbmap. My keyboard layout is supposed to be changed to pt-pt, but I keep getting a message that xkb is not installed. I've tried loading the pt keyset before, though it had issues in the past. Help would be really appreciated!

P
pixelpiksie
Member
159
08-11-2023, 05:46 AM
#2
It looks like a typical issue arises from an incorrect "PATH" setting, causing the system to miss essential files each time it attempts to access them. The problem appears solvable, with recommended fixes outlined in the referenced guide.
P
pixelpiksie
08-11-2023, 05:46 AM #2

It looks like a typical issue arises from an incorrect "PATH" setting, causing the system to miss essential files each time it attempts to access them. The problem appears solvable, with recommended fixes outlined in the referenced guide.

B
Burst_Reckless
Junior Member
5
08-11-2023, 06:56 AM
#3
Hey thanks for the help. regarding " Solution 1: Set sudo 's default secure path " I have everything like it's in the website... So probably the problem isn't there... Regarding " Solution 2: use the root account directly " I am already using Root user... and the file " /root/.bashrc " isn't there... Regarding " Solution 3: try to pass the PATH variable to sudo at execution time. " I'm not really sure what that means but If I did it correctly, still doesn't work. I think I might accidently unninstalled apt-get.
B
Burst_Reckless
08-11-2023, 06:56 AM #3

Hey thanks for the help. regarding " Solution 1: Set sudo 's default secure path " I have everything like it's in the website... So probably the problem isn't there... Regarding " Solution 2: use the root account directly " I am already using Root user... and the file " /root/.bashrc " isn't there... Regarding " Solution 3: try to pass the PATH variable to sudo at execution time. " I'm not really sure what that means but If I did it correctly, still doesn't work. I think I might accidently unninstalled apt-get.

T
TNTeenagear
Junior Member
5
08-16-2023, 03:22 PM
#4
An override is applied to the path variable. The apt get is functioning correctly. If needed, you may use aptitude Echo Path and share the results.
T
TNTeenagear
08-16-2023, 03:22 PM #4

An override is applied to the path variable. The apt get is functioning correctly. If needed, you may use aptitude Echo Path and share the results.

S
sspongy
Member
60
08-17-2023, 04:02 PM
#5
The missing file in your main folder might be causing issues. If apt-get isn't installed, you'll see an error such as "apt-get unknown command." You might be able to fix the directory. When using root, run commands with that permission; as a regular user, log in without root. If /etc/skel is absent, create it for root. For your current user, edit ~/.bashrc and adjust PATH accordingly.
S
sspongy
08-17-2023, 04:02 PM #5

The missing file in your main folder might be causing issues. If apt-get isn't installed, you'll see an error such as "apt-get unknown command." You might be able to fix the directory. When using root, run commands with that permission; as a regular user, log in without root. If /etc/skel is absent, create it for root. For your current user, edit ~/.bashrc and adjust PATH accordingly.