Authentication error at login after online upgrade to 18.04Unable to upgrade 16.04 to Bionic Beaver 18.04?Failed update to 18.04, no GNOME or any desktopHow to solve authentication error in my ubuntu version 18.04?AUTHENTICATION ERROR after upgrade from 16.04 to 18.04Cannot login after upgrading from 16.04 to 18.04Lubuntu 12.10 PPC-Can't Login after installBlack login screen after upgrading to Ubuntu 18.04 from 16.04Ubuntu 18.04: Authentication Error on loging after locklogin window come again and again after login with passwordAUTHENTICATION ERROR after upgrade from 16.04 to 18.04Printer stopped working after upgrade 16.04 to 18.04unable to start lightdm after upgrade to 18.04Cant login after Ubuntu upgrade 16.04 --> 18.04Ubuntu 18.04 no installation or update after upgrade from 16.04Cannot login after upgrading from 16.04 to 18.04
Understanding the point of a kölsche Witz
How can I export the "available software to download" to a file?
Is there a command to install basic applications on Ubuntu 16.04?
Does fossil fuels use since 1990 account for half of all the fossil fuels used in history?
What is a good class if we remove subclasses?
Should I not go forward with internship interview process if I don't have the time to prepare properly?
Heating Margarine in Pan = loss of calories?
How to describe accents?
How does "Te vas a cansar" mean "You're going to get tired"?
First amendment and employment: Can a police department terminate an officer for speech?
On the Rømer experiments and the speed of light
When were the tantalum capacitors first used in computing?
Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase() 'banana'?
These were just lying around
how do companies get money from being listed publicly
What should I call bands of armed men in the Middle Ages?
A Non Math Puzzle. What is the middle number?
Is 悪いところを見つかった proper Japanese?
Generate Brainfuck for the numbers 1–255
Are differences between uniformly distributed numbers uniformly distributed?
80's/90's superhero cartoon with a man on fire and a man who made ice runways like Frozone
How are you supposed to know the strumming pattern for a song from the "chord sheet music"?
Can the ground attached to neutral fool a receptacle tester?
Plotting octahedron inside the sphere and sphere inside the cube
Authentication error at login after online upgrade to 18.04
Unable to upgrade 16.04 to Bionic Beaver 18.04?Failed update to 18.04, no GNOME or any desktopHow to solve authentication error in my ubuntu version 18.04?AUTHENTICATION ERROR after upgrade from 16.04 to 18.04Cannot login after upgrading from 16.04 to 18.04Lubuntu 12.10 PPC-Can't Login after installBlack login screen after upgrading to Ubuntu 18.04 from 16.04Ubuntu 18.04: Authentication Error on loging after locklogin window come again and again after login with passwordAUTHENTICATION ERROR after upgrade from 16.04 to 18.04Printer stopped working after upgrade 16.04 to 18.04unable to start lightdm after upgrade to 18.04Cant login after Ubuntu upgrade 16.04 --> 18.04Ubuntu 18.04 no installation or update after upgrade from 16.04Cannot login after upgrading from 16.04 to 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I tried an online upgrade from 16.04.2 to 18.04.2 in February 2019, but have never been able to get beyond the initial GUI log-in that comes after grub, due to it always showing Authentication error.
Here's what I've tried so far...
3 posts to Ubuntuforums:
- Can't log in to 18.04 upgrade at boot
- Ubuntu 18.04 LTS Authentication Error
- Authentication error prevents log-in to 18.04 after upgrade from 16.04.
Noticed my GUI login username is showing with an initial capital letter whereas my correct username starts with a lower case. pressed "not shown" and tried entering correct username but had similar authentication error result.
Ctrl+Alt+F3 and try tty3 log-in: successful with lower case username
$ # brought up a small GUI display in top left hand corner of my
$ # screen, but too small to read what it said
$ sudo startex
$ # didn't fix my GUI login
$ sudo chmod 7755 /usr/lib/policykit-1/polkit-agent-helper-1
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
$ sudo apt-get update
fetched 432Kb in 2s
$ sudo apt-get install ubuntu-desktop
already newest version (1.417)
$ sudo apt-get install gnome-core lightdm
unable to locate package gnome-core
I've read Ask Ubuntu answers to these questions:
- How to solve authentication error in my ubuntu version 18.04?
- Unable to upgrade 16.04 to Bionic Beaver 18.04?
- AUTHENTICATION ERROR after upgrade from 16.04 to 18.04
- Cannot login after upgrading from 16.04 to 18.04
- Failed update to 18.04, no GNOME or any desktop
and all in all I've been struggling for over a month to get my ThinkPad L520's 18.04 to work without any success, so looking now for suggestions that might help me as a slow old codger with somewhat diminished cognitive abilities to get somewhere with this disabling problem.
Having worked through Simon's suggestions, I still haven't found out exactly what isn't working properly or managed to fix anything, so below, I'm feeding back the results of what I've tried in the hope of getting more suggestions
Try to fix the "5 not to upgrade" with
sudo apt-get dist-upgrade --yes
Some upgrading did take place this time, but as I was working on tty3 I couldn't make a copy of what it did. At this point I went back and tried a GUI log-in again, but no improvement; still got the same brief authentication error message flashing up as before, followed by a blank grey screen that failed to respond to anything other than a restart
Login in the console as you did with ctrl+alt+F3 and check the output
ofps axf
This generated a long output list, which again I was unable to copy, but output was only in the range from 195 to 1621, so no results for 1838 to 2276.
monitor the auth and syslog and return to the login screen
ctrl+alt+F1sudo tail -f /var/log/syslog /var/log/auth.log
To see this result, I used my live 18.04 -2 DVD disk to load a LIVE session and navigated to /var/log
from there.
The auth.log
I found covered 2 hours of my trials and errors, so as it's 281kB I thought it best to upload it to my OneDrive cloud folder where there are also some camera pics of my GUI log-in failed attempts.
Analysing this lengthy auth.log
file and trying to work out what's going wrong is beyond my ability. Hopefully uploading this auth.log
will trigger some further suggestions about what to try, which I should be in a better position to personally deal with by the 2nd week of May.
16.04 18.04 upgrade login
add a comment |
I tried an online upgrade from 16.04.2 to 18.04.2 in February 2019, but have never been able to get beyond the initial GUI log-in that comes after grub, due to it always showing Authentication error.
Here's what I've tried so far...
3 posts to Ubuntuforums:
- Can't log in to 18.04 upgrade at boot
- Ubuntu 18.04 LTS Authentication Error
- Authentication error prevents log-in to 18.04 after upgrade from 16.04.
Noticed my GUI login username is showing with an initial capital letter whereas my correct username starts with a lower case. pressed "not shown" and tried entering correct username but had similar authentication error result.
Ctrl+Alt+F3 and try tty3 log-in: successful with lower case username
$ # brought up a small GUI display in top left hand corner of my
$ # screen, but too small to read what it said
$ sudo startex
$ # didn't fix my GUI login
$ sudo chmod 7755 /usr/lib/policykit-1/polkit-agent-helper-1
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
$ sudo apt-get update
fetched 432Kb in 2s
$ sudo apt-get install ubuntu-desktop
already newest version (1.417)
$ sudo apt-get install gnome-core lightdm
unable to locate package gnome-core
I've read Ask Ubuntu answers to these questions:
- How to solve authentication error in my ubuntu version 18.04?
- Unable to upgrade 16.04 to Bionic Beaver 18.04?
- AUTHENTICATION ERROR after upgrade from 16.04 to 18.04
- Cannot login after upgrading from 16.04 to 18.04
- Failed update to 18.04, no GNOME or any desktop
and all in all I've been struggling for over a month to get my ThinkPad L520's 18.04 to work without any success, so looking now for suggestions that might help me as a slow old codger with somewhat diminished cognitive abilities to get somewhere with this disabling problem.
Having worked through Simon's suggestions, I still haven't found out exactly what isn't working properly or managed to fix anything, so below, I'm feeding back the results of what I've tried in the hope of getting more suggestions
Try to fix the "5 not to upgrade" with
sudo apt-get dist-upgrade --yes
Some upgrading did take place this time, but as I was working on tty3 I couldn't make a copy of what it did. At this point I went back and tried a GUI log-in again, but no improvement; still got the same brief authentication error message flashing up as before, followed by a blank grey screen that failed to respond to anything other than a restart
Login in the console as you did with ctrl+alt+F3 and check the output
ofps axf
This generated a long output list, which again I was unable to copy, but output was only in the range from 195 to 1621, so no results for 1838 to 2276.
monitor the auth and syslog and return to the login screen
ctrl+alt+F1sudo tail -f /var/log/syslog /var/log/auth.log
To see this result, I used my live 18.04 -2 DVD disk to load a LIVE session and navigated to /var/log
from there.
The auth.log
I found covered 2 hours of my trials and errors, so as it's 281kB I thought it best to upload it to my OneDrive cloud folder where there are also some camera pics of my GUI log-in failed attempts.
Analysing this lengthy auth.log
file and trying to work out what's going wrong is beyond my ability. Hopefully uploading this auth.log
will trigger some further suggestions about what to try, which I should be in a better position to personally deal with by the 2nd week of May.
16.04 18.04 upgrade login
GUI logins use your user's GECOS "fullname" which is typically different from the Unix username used for terminal login - you would have supplied both these at installation time as shown here
– steeldriver
Apr 15 at 5:09
If you can access your data via succesfull login on tty3, you might be better off copying your data to an external drive and install Ubuntu from scratch, then restore the backup.
– pLumo
Apr 15 at 7:19
@SleepyJohn If you want to provide further information don’t hesitate to edit your question even if you have to change it radically because of that information. Here’s the meta discussion about your proposed edit to the answer: meta.askubuntu.com/q/18552/507051
– dessert
Apr 18 at 7:50
@SleepyJohn: please add the output ofcat /etc/environment
to your question.
– Simon Sudler
Apr 18 at 8:28
Did you try to fix the/etc/envronment
file?
– Simon Sudler
Apr 25 at 11:23
add a comment |
I tried an online upgrade from 16.04.2 to 18.04.2 in February 2019, but have never been able to get beyond the initial GUI log-in that comes after grub, due to it always showing Authentication error.
Here's what I've tried so far...
3 posts to Ubuntuforums:
- Can't log in to 18.04 upgrade at boot
- Ubuntu 18.04 LTS Authentication Error
- Authentication error prevents log-in to 18.04 after upgrade from 16.04.
Noticed my GUI login username is showing with an initial capital letter whereas my correct username starts with a lower case. pressed "not shown" and tried entering correct username but had similar authentication error result.
Ctrl+Alt+F3 and try tty3 log-in: successful with lower case username
$ # brought up a small GUI display in top left hand corner of my
$ # screen, but too small to read what it said
$ sudo startex
$ # didn't fix my GUI login
$ sudo chmod 7755 /usr/lib/policykit-1/polkit-agent-helper-1
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
$ sudo apt-get update
fetched 432Kb in 2s
$ sudo apt-get install ubuntu-desktop
already newest version (1.417)
$ sudo apt-get install gnome-core lightdm
unable to locate package gnome-core
I've read Ask Ubuntu answers to these questions:
- How to solve authentication error in my ubuntu version 18.04?
- Unable to upgrade 16.04 to Bionic Beaver 18.04?
- AUTHENTICATION ERROR after upgrade from 16.04 to 18.04
- Cannot login after upgrading from 16.04 to 18.04
- Failed update to 18.04, no GNOME or any desktop
and all in all I've been struggling for over a month to get my ThinkPad L520's 18.04 to work without any success, so looking now for suggestions that might help me as a slow old codger with somewhat diminished cognitive abilities to get somewhere with this disabling problem.
Having worked through Simon's suggestions, I still haven't found out exactly what isn't working properly or managed to fix anything, so below, I'm feeding back the results of what I've tried in the hope of getting more suggestions
Try to fix the "5 not to upgrade" with
sudo apt-get dist-upgrade --yes
Some upgrading did take place this time, but as I was working on tty3 I couldn't make a copy of what it did. At this point I went back and tried a GUI log-in again, but no improvement; still got the same brief authentication error message flashing up as before, followed by a blank grey screen that failed to respond to anything other than a restart
Login in the console as you did with ctrl+alt+F3 and check the output
ofps axf
This generated a long output list, which again I was unable to copy, but output was only in the range from 195 to 1621, so no results for 1838 to 2276.
monitor the auth and syslog and return to the login screen
ctrl+alt+F1sudo tail -f /var/log/syslog /var/log/auth.log
To see this result, I used my live 18.04 -2 DVD disk to load a LIVE session and navigated to /var/log
from there.
The auth.log
I found covered 2 hours of my trials and errors, so as it's 281kB I thought it best to upload it to my OneDrive cloud folder where there are also some camera pics of my GUI log-in failed attempts.
Analysing this lengthy auth.log
file and trying to work out what's going wrong is beyond my ability. Hopefully uploading this auth.log
will trigger some further suggestions about what to try, which I should be in a better position to personally deal with by the 2nd week of May.
16.04 18.04 upgrade login
I tried an online upgrade from 16.04.2 to 18.04.2 in February 2019, but have never been able to get beyond the initial GUI log-in that comes after grub, due to it always showing Authentication error.
Here's what I've tried so far...
3 posts to Ubuntuforums:
- Can't log in to 18.04 upgrade at boot
- Ubuntu 18.04 LTS Authentication Error
- Authentication error prevents log-in to 18.04 after upgrade from 16.04.
Noticed my GUI login username is showing with an initial capital letter whereas my correct username starts with a lower case. pressed "not shown" and tried entering correct username but had similar authentication error result.
Ctrl+Alt+F3 and try tty3 log-in: successful with lower case username
$ # brought up a small GUI display in top left hand corner of my
$ # screen, but too small to read what it said
$ sudo startex
$ # didn't fix my GUI login
$ sudo chmod 7755 /usr/lib/policykit-1/polkit-agent-helper-1
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
$ sudo apt-get update
fetched 432Kb in 2s
$ sudo apt-get install ubuntu-desktop
already newest version (1.417)
$ sudo apt-get install gnome-core lightdm
unable to locate package gnome-core
I've read Ask Ubuntu answers to these questions:
- How to solve authentication error in my ubuntu version 18.04?
- Unable to upgrade 16.04 to Bionic Beaver 18.04?
- AUTHENTICATION ERROR after upgrade from 16.04 to 18.04
- Cannot login after upgrading from 16.04 to 18.04
- Failed update to 18.04, no GNOME or any desktop
and all in all I've been struggling for over a month to get my ThinkPad L520's 18.04 to work without any success, so looking now for suggestions that might help me as a slow old codger with somewhat diminished cognitive abilities to get somewhere with this disabling problem.
Having worked through Simon's suggestions, I still haven't found out exactly what isn't working properly or managed to fix anything, so below, I'm feeding back the results of what I've tried in the hope of getting more suggestions
Try to fix the "5 not to upgrade" with
sudo apt-get dist-upgrade --yes
Some upgrading did take place this time, but as I was working on tty3 I couldn't make a copy of what it did. At this point I went back and tried a GUI log-in again, but no improvement; still got the same brief authentication error message flashing up as before, followed by a blank grey screen that failed to respond to anything other than a restart
Login in the console as you did with ctrl+alt+F3 and check the output
ofps axf
This generated a long output list, which again I was unable to copy, but output was only in the range from 195 to 1621, so no results for 1838 to 2276.
monitor the auth and syslog and return to the login screen
ctrl+alt+F1sudo tail -f /var/log/syslog /var/log/auth.log
To see this result, I used my live 18.04 -2 DVD disk to load a LIVE session and navigated to /var/log
from there.
The auth.log
I found covered 2 hours of my trials and errors, so as it's 281kB I thought it best to upload it to my OneDrive cloud folder where there are also some camera pics of my GUI log-in failed attempts.
Analysing this lengthy auth.log
file and trying to work out what's going wrong is beyond my ability. Hopefully uploading this auth.log
will trigger some further suggestions about what to try, which I should be in a better position to personally deal with by the 2nd week of May.
16.04 18.04 upgrade login
16.04 18.04 upgrade login
edited Apr 18 at 7:53
dessert
28.5k6 gold badges86 silver badges119 bronze badges
28.5k6 gold badges86 silver badges119 bronze badges
asked Apr 7 at 8:00
Sleepy JohnSleepy John
465 bronze badges
465 bronze badges
GUI logins use your user's GECOS "fullname" which is typically different from the Unix username used for terminal login - you would have supplied both these at installation time as shown here
– steeldriver
Apr 15 at 5:09
If you can access your data via succesfull login on tty3, you might be better off copying your data to an external drive and install Ubuntu from scratch, then restore the backup.
– pLumo
Apr 15 at 7:19
@SleepyJohn If you want to provide further information don’t hesitate to edit your question even if you have to change it radically because of that information. Here’s the meta discussion about your proposed edit to the answer: meta.askubuntu.com/q/18552/507051
– dessert
Apr 18 at 7:50
@SleepyJohn: please add the output ofcat /etc/environment
to your question.
– Simon Sudler
Apr 18 at 8:28
Did you try to fix the/etc/envronment
file?
– Simon Sudler
Apr 25 at 11:23
add a comment |
GUI logins use your user's GECOS "fullname" which is typically different from the Unix username used for terminal login - you would have supplied both these at installation time as shown here
– steeldriver
Apr 15 at 5:09
If you can access your data via succesfull login on tty3, you might be better off copying your data to an external drive and install Ubuntu from scratch, then restore the backup.
– pLumo
Apr 15 at 7:19
@SleepyJohn If you want to provide further information don’t hesitate to edit your question even if you have to change it radically because of that information. Here’s the meta discussion about your proposed edit to the answer: meta.askubuntu.com/q/18552/507051
– dessert
Apr 18 at 7:50
@SleepyJohn: please add the output ofcat /etc/environment
to your question.
– Simon Sudler
Apr 18 at 8:28
Did you try to fix the/etc/envronment
file?
– Simon Sudler
Apr 25 at 11:23
GUI logins use your user's GECOS "fullname" which is typically different from the Unix username used for terminal login - you would have supplied both these at installation time as shown here
– steeldriver
Apr 15 at 5:09
GUI logins use your user's GECOS "fullname" which is typically different from the Unix username used for terminal login - you would have supplied both these at installation time as shown here
– steeldriver
Apr 15 at 5:09
If you can access your data via succesfull login on tty3, you might be better off copying your data to an external drive and install Ubuntu from scratch, then restore the backup.
– pLumo
Apr 15 at 7:19
If you can access your data via succesfull login on tty3, you might be better off copying your data to an external drive and install Ubuntu from scratch, then restore the backup.
– pLumo
Apr 15 at 7:19
@SleepyJohn If you want to provide further information don’t hesitate to edit your question even if you have to change it radically because of that information. Here’s the meta discussion about your proposed edit to the answer: meta.askubuntu.com/q/18552/507051
– dessert
Apr 18 at 7:50
@SleepyJohn If you want to provide further information don’t hesitate to edit your question even if you have to change it radically because of that information. Here’s the meta discussion about your proposed edit to the answer: meta.askubuntu.com/q/18552/507051
– dessert
Apr 18 at 7:50
@SleepyJohn: please add the output of
cat /etc/environment
to your question.– Simon Sudler
Apr 18 at 8:28
@SleepyJohn: please add the output of
cat /etc/environment
to your question.– Simon Sudler
Apr 18 at 8:28
Did you try to fix the
/etc/envronment
file?– Simon Sudler
Apr 25 at 11:23
Did you try to fix the
/etc/envronment
file?– Simon Sudler
Apr 25 at 11:23
add a comment |
2 Answers
2
active
oldest
votes
There are a lot of things that can go wrong when upgrading from 16.04 to 18.04. Most of this things are however easy to fix. So first you need to find what is not working properly.
Fix packages
In your post you mentioned, that apt-get
returns with the following message:
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
Try to fix the "5 not to upgrade" with a sudo apt-get dist-upgrade --yes
or remove them with sudo apt-get --purge autoremove
.
Debug GUI login
Login in the console as you did with ctrl+alt+F3 and check the output of:
$ ps axf
....
1838 ? Ssl 0:00 /usr/sbin/gdm3
1893 ? Sl 0:00 _ gdm-session-worker [pam/gdm-launch-environment]
2213 tty1 Ssl+ 0:00 | _ /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
2252 tty1 Sl+ 0:00 | _ /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
2276 tty1 Sl+ 0:02 | _ /usr/bin/gnome-shell
....
In a standard Ubuntu installation (with gnome), the gdm-session-worker
should be running and provides the login screen. (You can scroll up/down with shift+pageup/pagedown)
Then monitor the auth
and syslog
and return to the login screen ctrl+alt+F1
sudo tail -f /var/log/syslog /var/log/auth.log
After the login failed, return to the console (again ctrl+alt+F3) and check the output for error messages. That should give you a hint where to look next.
Fix /etc/environment file
When looking into the output of your /var/log/auth.log
file, you find a reoccurring message:
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_env(gdm-launch-environment:session): non-alphanumeric key 'date +%d.%m.%Y' in /etc/environment', ignoring
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Apr 17 10:05:16 TP-L520 systemd-logind[945]: New session c56 of user gdm.
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Apr 17 10:05:16 TP-L520 systemd-logind[945]: Removed session c56.
It seams that there is a problem with some date
command inside the /etc/enviroment
file. A simple fix would be to backup that file and replace it if the standard values:
$ sudo cp /etc/environment /etc/environment.backup
$ echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' | sudo tee /etc/environment
Reboot and try again.
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
add a comment |
Hope this will help
Ctrl+Alt+F3 and try tty3 log-in:
After that change the username in
/etc/passwd
e.g if your username ispradip
then change it toPradip
.Then change password for same using
sudo passwd new_username
Try to sign in
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131817%2fauthentication-error-at-login-after-online-upgrade-to-18-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are a lot of things that can go wrong when upgrading from 16.04 to 18.04. Most of this things are however easy to fix. So first you need to find what is not working properly.
Fix packages
In your post you mentioned, that apt-get
returns with the following message:
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
Try to fix the "5 not to upgrade" with a sudo apt-get dist-upgrade --yes
or remove them with sudo apt-get --purge autoremove
.
Debug GUI login
Login in the console as you did with ctrl+alt+F3 and check the output of:
$ ps axf
....
1838 ? Ssl 0:00 /usr/sbin/gdm3
1893 ? Sl 0:00 _ gdm-session-worker [pam/gdm-launch-environment]
2213 tty1 Ssl+ 0:00 | _ /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
2252 tty1 Sl+ 0:00 | _ /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
2276 tty1 Sl+ 0:02 | _ /usr/bin/gnome-shell
....
In a standard Ubuntu installation (with gnome), the gdm-session-worker
should be running and provides the login screen. (You can scroll up/down with shift+pageup/pagedown)
Then monitor the auth
and syslog
and return to the login screen ctrl+alt+F1
sudo tail -f /var/log/syslog /var/log/auth.log
After the login failed, return to the console (again ctrl+alt+F3) and check the output for error messages. That should give you a hint where to look next.
Fix /etc/environment file
When looking into the output of your /var/log/auth.log
file, you find a reoccurring message:
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_env(gdm-launch-environment:session): non-alphanumeric key 'date +%d.%m.%Y' in /etc/environment', ignoring
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Apr 17 10:05:16 TP-L520 systemd-logind[945]: New session c56 of user gdm.
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Apr 17 10:05:16 TP-L520 systemd-logind[945]: Removed session c56.
It seams that there is a problem with some date
command inside the /etc/enviroment
file. A simple fix would be to backup that file and replace it if the standard values:
$ sudo cp /etc/environment /etc/environment.backup
$ echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' | sudo tee /etc/environment
Reboot and try again.
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
add a comment |
There are a lot of things that can go wrong when upgrading from 16.04 to 18.04. Most of this things are however easy to fix. So first you need to find what is not working properly.
Fix packages
In your post you mentioned, that apt-get
returns with the following message:
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
Try to fix the "5 not to upgrade" with a sudo apt-get dist-upgrade --yes
or remove them with sudo apt-get --purge autoremove
.
Debug GUI login
Login in the console as you did with ctrl+alt+F3 and check the output of:
$ ps axf
....
1838 ? Ssl 0:00 /usr/sbin/gdm3
1893 ? Sl 0:00 _ gdm-session-worker [pam/gdm-launch-environment]
2213 tty1 Ssl+ 0:00 | _ /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
2252 tty1 Sl+ 0:00 | _ /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
2276 tty1 Sl+ 0:02 | _ /usr/bin/gnome-shell
....
In a standard Ubuntu installation (with gnome), the gdm-session-worker
should be running and provides the login screen. (You can scroll up/down with shift+pageup/pagedown)
Then monitor the auth
and syslog
and return to the login screen ctrl+alt+F1
sudo tail -f /var/log/syslog /var/log/auth.log
After the login failed, return to the console (again ctrl+alt+F3) and check the output for error messages. That should give you a hint where to look next.
Fix /etc/environment file
When looking into the output of your /var/log/auth.log
file, you find a reoccurring message:
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_env(gdm-launch-environment:session): non-alphanumeric key 'date +%d.%m.%Y' in /etc/environment', ignoring
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Apr 17 10:05:16 TP-L520 systemd-logind[945]: New session c56 of user gdm.
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Apr 17 10:05:16 TP-L520 systemd-logind[945]: Removed session c56.
It seams that there is a problem with some date
command inside the /etc/enviroment
file. A simple fix would be to backup that file and replace it if the standard values:
$ sudo cp /etc/environment /etc/environment.backup
$ echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' | sudo tee /etc/environment
Reboot and try again.
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
add a comment |
There are a lot of things that can go wrong when upgrading from 16.04 to 18.04. Most of this things are however easy to fix. So first you need to find what is not working properly.
Fix packages
In your post you mentioned, that apt-get
returns with the following message:
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
Try to fix the "5 not to upgrade" with a sudo apt-get dist-upgrade --yes
or remove them with sudo apt-get --purge autoremove
.
Debug GUI login
Login in the console as you did with ctrl+alt+F3 and check the output of:
$ ps axf
....
1838 ? Ssl 0:00 /usr/sbin/gdm3
1893 ? Sl 0:00 _ gdm-session-worker [pam/gdm-launch-environment]
2213 tty1 Ssl+ 0:00 | _ /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
2252 tty1 Sl+ 0:00 | _ /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
2276 tty1 Sl+ 0:02 | _ /usr/bin/gnome-shell
....
In a standard Ubuntu installation (with gnome), the gdm-session-worker
should be running and provides the login screen. (You can scroll up/down with shift+pageup/pagedown)
Then monitor the auth
and syslog
and return to the login screen ctrl+alt+F1
sudo tail -f /var/log/syslog /var/log/auth.log
After the login failed, return to the console (again ctrl+alt+F3) and check the output for error messages. That should give you a hint where to look next.
Fix /etc/environment file
When looking into the output of your /var/log/auth.log
file, you find a reoccurring message:
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_env(gdm-launch-environment:session): non-alphanumeric key 'date +%d.%m.%Y' in /etc/environment', ignoring
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Apr 17 10:05:16 TP-L520 systemd-logind[945]: New session c56 of user gdm.
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Apr 17 10:05:16 TP-L520 systemd-logind[945]: Removed session c56.
It seams that there is a problem with some date
command inside the /etc/enviroment
file. A simple fix would be to backup that file and replace it if the standard values:
$ sudo cp /etc/environment /etc/environment.backup
$ echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' | sudo tee /etc/environment
Reboot and try again.
There are a lot of things that can go wrong when upgrading from 16.04 to 18.04. Most of this things are however easy to fix. So first you need to find what is not working properly.
Fix packages
In your post you mentioned, that apt-get
returns with the following message:
$ sudo apt install -f
0 to upgrade, 0 to newly install, 0 to remove, 5 not to upgrade
Try to fix the "5 not to upgrade" with a sudo apt-get dist-upgrade --yes
or remove them with sudo apt-get --purge autoremove
.
Debug GUI login
Login in the console as you did with ctrl+alt+F3 and check the output of:
$ ps axf
....
1838 ? Ssl 0:00 /usr/sbin/gdm3
1893 ? Sl 0:00 _ gdm-session-worker [pam/gdm-launch-environment]
2213 tty1 Ssl+ 0:00 | _ /usr/lib/gdm3/gdm-wayland-session gnome-session --autostart /usr/share/gdm/greeter/autostart
2252 tty1 Sl+ 0:00 | _ /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart
2276 tty1 Sl+ 0:02 | _ /usr/bin/gnome-shell
....
In a standard Ubuntu installation (with gnome), the gdm-session-worker
should be running and provides the login screen. (You can scroll up/down with shift+pageup/pagedown)
Then monitor the auth
and syslog
and return to the login screen ctrl+alt+F1
sudo tail -f /var/log/syslog /var/log/auth.log
After the login failed, return to the console (again ctrl+alt+F3) and check the output for error messages. That should give you a hint where to look next.
Fix /etc/environment file
When looking into the output of your /var/log/auth.log
file, you find a reoccurring message:
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_env(gdm-launch-environment:session): non-alphanumeric key 'date +%d.%m.%Y' in /etc/environment', ignoring
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Apr 17 10:05:16 TP-L520 systemd-logind[945]: New session c56 of user gdm.
Apr 17 10:05:16 TP-L520 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Apr 17 10:05:16 TP-L520 systemd-logind[945]: Removed session c56.
It seams that there is a problem with some date
command inside the /etc/enviroment
file. A simple fix would be to backup that file and replace it if the standard values:
$ sudo cp /etc/environment /etc/environment.backup
$ echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' | sudo tee /etc/environment
Reboot and try again.
edited Apr 18 at 8:35
answered Apr 15 at 7:23
Simon SudlerSimon Sudler
2,0539 silver badges18 bronze badges
2,0539 silver badges18 bronze badges
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
add a comment |
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
Answers much appreciated , thanks. Could be a few days before I get to trying them out now though 'cos I've got to pack and leave the country
– Sleepy John
Apr 16 at 5:00
add a comment |
Hope this will help
Ctrl+Alt+F3 and try tty3 log-in:
After that change the username in
/etc/passwd
e.g if your username ispradip
then change it toPradip
.Then change password for same using
sudo passwd new_username
Try to sign in
add a comment |
Hope this will help
Ctrl+Alt+F3 and try tty3 log-in:
After that change the username in
/etc/passwd
e.g if your username ispradip
then change it toPradip
.Then change password for same using
sudo passwd new_username
Try to sign in
add a comment |
Hope this will help
Ctrl+Alt+F3 and try tty3 log-in:
After that change the username in
/etc/passwd
e.g if your username ispradip
then change it toPradip
.Then change password for same using
sudo passwd new_username
Try to sign in
Hope this will help
Ctrl+Alt+F3 and try tty3 log-in:
After that change the username in
/etc/passwd
e.g if your username ispradip
then change it toPradip
.Then change password for same using
sudo passwd new_username
Try to sign in
edited Apr 18 at 8:38
Simon Sudler
2,0539 silver badges18 bronze badges
2,0539 silver badges18 bronze badges
answered Apr 18 at 8:05
Pradip N. PawarPradip N. Pawar
11 bronze badge
11 bronze badge
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131817%2fauthentication-error-at-login-after-online-upgrade-to-18-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
GUI logins use your user's GECOS "fullname" which is typically different from the Unix username used for terminal login - you would have supplied both these at installation time as shown here
– steeldriver
Apr 15 at 5:09
If you can access your data via succesfull login on tty3, you might be better off copying your data to an external drive and install Ubuntu from scratch, then restore the backup.
– pLumo
Apr 15 at 7:19
@SleepyJohn If you want to provide further information don’t hesitate to edit your question even if you have to change it radically because of that information. Here’s the meta discussion about your proposed edit to the answer: meta.askubuntu.com/q/18552/507051
– dessert
Apr 18 at 7:50
@SleepyJohn: please add the output of
cat /etc/environment
to your question.– Simon Sudler
Apr 18 at 8:28
Did you try to fix the
/etc/envronment
file?– Simon Sudler
Apr 25 at 11:23