Author Topic: Sudo Password and fixing Aw Snap problem (SOLVED)  (Read 5566 times)

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Sudo Password and fixing Aw Snap problem (SOLVED)
« on: February 01, 2015, 12:46:09 am »
New to Linux and installed Peppermint 5 yesterday.

I got the 'Aw Snap' glitch when watching Youtube; others like Udemy are fine.  I followed the help hints including reloading but still not good.  At first it seemed to happen after about 30 seconds but today some Youtube videos can run completely without a problem and others get affected many minutes in.  I did a forum search and the nearest I could find was this:

Downgrading  Chrome/Chromium to Non Aura Versions(Peppermint 5)

http://forum.peppermintos.com/index.php/topic,494.msg4143.html#msg4143


I try to stop the upgrades and have problems with entering the password:

andrew@andrew-RF508-RF408-RF708 ~ $ sudo echo "google-chrome-stable hold" | sudo dpkg --set-selections
[sudo] password for andrew: [sudo] password for andrew:
Sorry, try again.
[sudo] password for andrew:


I've double checked that I'm using the same password that I log into Peppermint with, including no Caps Lock - same result.  I'm wondering if it locks access after a set amount of attempts and what to do.

I would be grateful if you could tell me if I'm doing the right thing with:

a.  This approach to try and fix the problem.
b.  Am doing something something obviously stupid trying to enter the password.

Thanks




« Last Edit: February 03, 2015, 07:44:42 pm by Kellynch »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Sudo Password and fixing Aw Snap problem
« Reply #1 on: February 01, 2015, 01:36:22 am »
Hi Kellynch, how's it going?  Welcome to Planet Peppermint  8)!!  Have you tried opening a terminal window with the following keystrokes: Ctrl+Alt+t.  Enter the following command into the terminal window.
Code: [Select]
apt updateYou will be asked for your user password.  This is a good place to check it.  As this is a new installation, which browser are you trying to hold back?  Is it the default Chromium Browser or have you switched to Google Chrome?

The holding back package command for Google Chrome should be:
Code: [Select]
echo "google-chrome-stable hold" | sudo dpkg --set-selectionsfor Google Chrome.  If you are using the default Chromium Browser and have used Mark's downgrade tutorial.  You don't need to hold it back.
« Last Edit: February 01, 2015, 01:46:58 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Re: Sudo Password and fixing Aw Snap problem
« Reply #2 on: February 01, 2015, 04:17:08 am »
So grateful for your help and so quickly too.

I ran the apt update as you mentioned and it accepted my password this time - excellent!

I guess the problem is that I am a bit confused by the difference between Chromium and Google Chrome.  From what I gather, here in Peppermint, if I use Chromium then it's open source and updated etc by Peppermint and Google Chrome is just taking me to the website as it would in Windows.  Please put me right if it's different.
With that in mind, I was trying to use Chromium to keep within the Linux/Open Source ideals and to keep up with the latest version of using 'Google' wherever possible.

Where you mention at the end that for Chromium I don't need to hold it back, should I do anything further?

Thanks again so much.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sudo Password and fixing Aw Snap problem
« Reply #3 on: February 01, 2015, 04:27:08 am »
Try opening a terminal and running:
Code: [Select]
sudo update-pepperflashplugin-nonfree --installthen close ALL instances of Chromium, then reopen it to test.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Re: Sudo Password and fixing Aw Snap problem
« Reply #4 on: February 02, 2015, 03:59:03 am »
Unfortunately I still have the same problem, even though I logged out and in again.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Sudo Password and fixing Aw Snap problem
« Reply #5 on: February 02, 2015, 02:58:34 pm »
Hi Kellynch, you could try giving, Google Chrome a test drive to see if it works better.  I gave up on the Chromium Browser when I was still using PM4.  I have never had a Flash problem with Google Chrome.  If you want to try it here is the link: https://www.google.com/chrome/browser/desktop/index.html.  Select the Debian/Ubuntu .deb that matches your system, (32bit or 64bit).  It will download by default to your Downloads folder.  Double click on the ,deb file.  Select, Install Package and enter your user password when asked.  You can run Google Chrome alongside the Chromium Browser if you wish.  If you want to remove Chromium Browsers, see the following instructions. 

Close all instances of Chromium Browser, this includes any SSBs that you may have open.  Open a terminal window with the following keystrokes: Ctrl+Alt+t.  Enter the following command into the terminal window.
Code: [Select]
apt remove --purge chromium-browser -yHit enter and enter your user password when asked.  That's it.  I hope this helps you clear up your issue ;).

Note:  If you want to make any Chromium Browser SSBs you have on your system open in Google Chrome, please follow the instructions provided in this link: Change ALL your SSBs to open in Chrome instead of Chromium.
« Last Edit: February 02, 2015, 03:05:15 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Re: Sudo Password and fixing Aw Snap problem
« Reply #6 on: February 02, 2015, 06:32:13 pm »
Hi AndyInMokum,

I think you're right.  I have been using Chrome and it's alright but as I downgraded the version, as per my original post, it gives the warning to upgrade.  I'm getting myself tied up in knots remembering what the situation was, perhaps my age.  I can't remember now if Youtube on Chrome was working alright before, probably as I was a wee bit confused between Chrome and Chromium.  From what you say, the updated version of Chrome should work alright.  I followed the instructions I was given to stop Chrome upgrades, so I'd be grateful if you could let me know how to let it upgrade again.  I'm of the understanding that I should be able to use Chrome for my Google stuff, as I did on Windows, prior to installing Peppermint.  If that's the case then I'll just leave Chromium as is and not use it.

Thanks

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Sudo Password and fixing Aw Snap problem
« Reply #7 on: February 03, 2015, 01:16:24 am »
Hi Kellynch, how's it going  :)?  Here's the command to undo the holding back of Google Chrome.
Code: [Select]
echo "google-chrome-stable install" | sudo dpkg --set-selectedEnter your user password if asked.  After you have done that.  Run the following command to bring everything up to date:
Code: [Select]
apt update && apt upgrade -yDo the password thing if asked.  Yes, you can use Google Chrome in the same way as you used it in Windows.  The same can be said for the Chromium Browser too, at least in principle.  Please be aware that if you decide to keep the Chromium Browser in "moth balls" so to speak.  You will need to make a choice of which browser the Ice application will use to create SSBs.


(Widget: crunchy-dark-grey  Theme: Peppermint-Dark-Edited)

I have only Google Chrome installed on my system, so the Chromium Browser option is greyed out.  With your setup, you will have to make a choice of which browser is handling your SSBs each time you create one.  It can get a little muddled if you are unaware of this.  The only difference you will notice will be.  When you are using a Google Chrome SSB and you click a link.  The Google Chrome browser will open.  When you are using a Chromium Browser SSB and you click a link.  The Chromium Browser will open up.  I hope this has helped you - have fun ;).

Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Re: Sudo Password and fixing Aw Snap problem
« Reply #8 on: February 03, 2015, 01:44:18 am »
Hi AndyInMokum,

I input the first command you mentioned and this happened:

andrew@Khelang ~ $ echo "google-chrome-stable install" | sudo dpkg --set-selected
sudo: unable to resolve host Khelang
[sudo] password for andrew:
dpkg: error: unknown option --set-selected

Type dpkg --help for help about installing and deinstalling packages
  • ;

Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked
  • produce a lot of output - pipe it through 'less' or 'more' !
  • [/b]

    Somehow the message I pasted above became distorted when previewing - the (bullet point and semi-colon after 'deinstalling packages') and I couldn't figure out how to change it.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Sudo Password and fixing Aw Snap problem
« Reply #9 on: February 03, 2015, 02:33:56 am »
Hi Kellynch, I'm not surprised it hated that.  There's a typo in the command - sorry about that.  The command should read:
Code: [Select]
echo "google-chrome-stable install" | sudo dpkg --set-selectionsIt should be a lot happier now  ;).
« Last Edit: February 03, 2015, 02:40:05 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sudo Password and fixing Aw Snap problem
« Reply #10 on: February 03, 2015, 02:43:10 am »
Before doing what AndyInMokum suggests, can you run this command:
Code: [Select]
gedit /etc/hostsand post the contents of the file back here.

Can you also post the contents of:
Code: [Select]
gedit /etc/hostname
Sorry Andy .. I just want to see if this
sudo: unable to resolve host Khelang
indicates a problem ;)
« Last Edit: February 03, 2015, 02:52:29 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Re: Sudo Password and fixing Aw Snap problem
« Reply #11 on: February 03, 2015, 03:37:43 am »
I got lots of output for the first command:

In the terminal

** (gedit:2238): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found


then this popped up on top in a box marked hosts(/etc) - gedit

127.0.0.1   localhost
127.0.1.1   andrew-RF508-RF408-RF708

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


And this from the second command:

In the terminal

andrew@Khelang ~ $ gedit /etc/hosts

** (gedit:2238): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
andrew@Khelang ~ $ gedit /etc/hostname

** (gedit:2246): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found


and then gedit

Khelang

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Sudo Password and fixing Aw Snap problem
« Reply #12 on: February 03, 2015, 04:15:11 am »
.........Sorry Andy .. I just want to see if this
sudo: unable to resolve host Khelang
indicates a problem ;)

No problem, I'm curious to see what's going on too  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sudo Password and fixing Aw Snap problem
« Reply #13 on: February 03, 2015, 08:45:57 am »
run:
Code: [Select]
gksudo gedit /etc/hostsenter your password when prompted.

When gedit opens, find the line:-

127.0.1.1   andrew-RF508-RF408-RF708

and change it to:-

127.0.1.1   Khelang

Be careful not to change the spacing.

SAVE the file and exit gedit

Hopefully you'll get no errors from "sudo" any more
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Kellynch

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 5
Re: Sudo Password and fixing Aw Snap problem
« Reply #14 on: February 03, 2015, 03:51:20 pm »
Thanks,

After the change I ran the original command you mentioned and got this, twice, having done a software update from desktop, not terminal after the first try:

andrew@Khelang ~ $ gedit /etc/hosts

** (gedit:3396): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found


along with this in gedit

127.0.0.1   localhost
127.0.1.1   khelang

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters