Choose style:

Author Topic: Error when logging in after in place upgrade from P9 to P10 <SOLVED>  (Read 279 times)

0 Members and 1 Guest are viewing this topic.

Offline MNFrozenfish

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 16
  • Smile! - It makes people wonder what you're up to.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin-64 bit / P10
I have recently done in place upgrades from P9 respin to P10 on two machines following PCNetSpecs clear and complete instructions, Thanks for that.  :)
On the first machine all went great and issue free.
On the second machine there was an error during the upgrade and I had to rerun the process, operator error I'm sure (fat fingers or skipping a step). The second attempt was successful but now when I boot up the machine, I get the following error:

Error found when loading /etc/profile:
/etc/profile.d/01-locale-fix.sh: line 2: /usr/bin/locale-check: No such file or directory
As a result the session will not be configured correctly.
You should fix the problem as soon as feasible.
With an "OK" button

The error pops up after entering password, I click "OK" and proceed. All seems to work fine, time is correct.
Any help appreciated as always,
Thanks
« Last Edit: May 28, 2019, 02:24:12 pm by MNFrozenfish »

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #1 on: May 28, 2019, 11:10:01 am »
Would you mind sharing the content of the file?
This is a general system wide file that somehow got corrupted.
If you don't mind, you could also share the equivalent file from the system without issues.
Or, if you prefer run a diff on those two and share the result.

Offline MNFrozenfish

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 16
  • Smile! - It makes people wonder what you're up to.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin-64 bit / P10
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #2 on: May 28, 2019, 11:20:10 am »
The working machine does not have the 01-locale-fix.sh file at all.
The one with the error contains:

# Make sure the locale variables are set to valid values.
eval $(/usr/bin/locale-check C.UTF-8)

Would it be safe to rem that line as well or delete the file altogether?

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #3 on: May 28, 2019, 11:42:14 am »
I'm on NetBSD right now and that file doesn't exist, but that means nothing.
Either you wait a few hours until I can double check the content when I'm home or someone else can do this for you earlier.
Given that the other system doesn't have it, it should be safe to remove it, but I would like to double check.
You could,
Code: [Select]
sudo mv 01-locale-fix.sh  ~/
That way you remove the file while you still keep it in your home directory in case you need to restore it  ;)

Reboot and if everything is fine, you can discard it from your home directory as well.

Offline MNFrozenfish

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 16
  • Smile! - It makes people wonder what you're up to.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin-64 bit / P10
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #4 on: May 28, 2019, 11:50:59 am »
I'm in no rush as it doesn't seem to be causing any issues aside from a minor annoyance at login. I'll wait for further feedback and then probably move the file as you suggest if there are no arguments against the idea or other options.
Thanks for your help.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25280
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #5 on: May 28, 2019, 12:22:11 pm »
what's the output from:
Code: [Select]
dpkg -l | grep base-files
and
Code: [Select]
cat /etc/apt/sources.list.d/peppermint.list
and what happens if you run:
Code: [Select]
sudo apt-get install --reinstall base-files
do you get any errors ? .. or did it fix the issue ?
« Last Edit: May 28, 2019, 12:25:00 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #6 on: May 28, 2019, 01:06:37 pm »
Please provide the requested outputs. Although, such file shouldn't have been created if you are using US locale.
I have a few of these for special characters. I have a Swedish keyboard, but need to type in several other European languages.

Offline MNFrozenfish

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 16
  • Smile! - It makes people wonder what you're up to.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin-64 bit / P10
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #7 on: May 28, 2019, 01:18:22 pm »
todd@Pepp-OptiPlex-7010 ~ $ dpkg -l | grep base-files
ii  base-files                              10.1ubuntu2.4+peppermint10.0.0.0                amd64        Debian base system miscellaneous files
todd@Pepp-OptiPlex-7010 ~ $ cat /etc/apt/sources.list.d/peppermint.list
deb http://ppa.launchpad.net/peppermintos/p10-release/ubuntu bionic main
# deb-src http://ppa.launchpad.net/peppermintos/p10-release/ubuntu bionic main

Will reboot in a few and post results.

Offline MNFrozenfish

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 16
  • Smile! - It makes people wonder what you're up to.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin-64 bit / P10
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #8 on: May 28, 2019, 01:21:26 pm »
Error persists

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25280
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #9 on: May 28, 2019, 01:32:54 pm »
Just do what pin suggests .. move the script to your home folder, because neither of those files should exist
Code: [Select]
sudo mv 01-locale-fix.sh  ~/
« Last Edit: May 28, 2019, 01:38:57 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline MNFrozenfish

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 16
  • Smile! - It makes people wonder what you're up to.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin-64 bit / P10
Re: Error when logging in after in place upgrade from P9 to P10
« Reply #10 on: May 28, 2019, 02:23:48 pm »
Problem solved after I amended mv command to the full file path.
Thank you both for your help and quick responses.  ;D 8)

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Error when logging in after in place upgrade from P9 to P10 <SOLVED>
« Reply #11 on: May 28, 2019, 03:10:08 pm »
Your welcome  :)
You can now delete the file from your home directory as well.

Could you please mark the topic as (SOLVED) by editing the title of your first post.
TIA

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 984
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Error when logging in after in place upgrade from P9 to P10 <SOLVED>
« Reply #12 on: June 01, 2019, 10:58:14 am »
I have recently done in place upgrades from P9 respin to P10 on two machines following PCNetSpecs clear and complete instructions, Thanks for that.  :)


Where are these instructions? I can't find them anywhere.
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25280
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 984
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
What was I thinking?