new to Ubuntu and trying to remove programs getting an error

Authentication is required to remove software Incorrect permissions on /usr/lib/policykit-1/polkit-agent-helper-1 (needs to be setuid root)

Guys… I’m the new kid on the block and picked up this laptop with Ubuntu 18 on it. It works great, but has SW on it I don’t need and want to remove. When I try to remove the SW, I get the error message above. How do I correct this? Any and all help is greatly appreciated. Thanks Jackhammer

Nothing i have tried works until now trying to access my pc normally

after i installed a virtual machine and made sure it isnt working i left my laptop on sleep and when i came back i couldnt open literally noting except for Firefox. I can’t open the terminal, no key combos work, neither does it open trough the menu. I have no access to the file system because it doesnt open aswell. I went in recovery mode, tried updating everything and used purge and still it remained the same way. I deleted the vm and its files in hope of making it work again and tried updating python but it didnt help.

MySQL Syntax error when trying to create database trigger

When Trying to create the below trigger, I am receiving a syntax error. It looks good to me and I’m having a terrible time trying to figure it out.

  DELIMITER $  $       CREATE TRIGGER trg_pic_hours     AFTER INSERT ON CREW     FOR EACH ROW     BEGIN     IF (NEW.CREW_JOB = 'Pilot') THEN     UPDATE PILOT     SET PIL_PIC_HRS = TEMP_PIL.PIL_PIC_HRS + CHARTER.CHAR_HOURS_FLOWN     WHERE CHARTER.CHAR_TRIP = NEW.CHAR_TRIP     AND PILOT.EMP_NUM = NEW.EMP_NUM;     ENDIF;     END$  $       DELIMITER;  ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; END' at line 10 

SPFX 404 When Trying to Get Current User In Workbench

I’m trying to get the user context in my React webpart and am getting 404’s when requesting: https://localhost:4321/_api/web/currentuser

This is the part of the code that fetches the current user:

private GetUserProperties(): void { /* pnp.setup({   spfxContext: this.context });  */  pnp.sp.web.currentUser.get().then((r: CurrentUser) => {   console.log('CURRENT USER', r); }); 

}

This was setup as a Sharepoint online application. I’ve tried several different solutions with no luck.

Bios stopped recognizing any drives after trying to install Ubuntu from usb drive

I tried installing Ubuntu (dual-boot with Windows 10) from my USB drive but I got the error “No EFI system partition was found, the system will likely not be able to boot successfully and the installation may fail” I closed the installer and reboot my computer to find that none of my drives are being recognized by the bios. When I went back to Ubuntu on my USB (apparently it can recognize the USB and nothing else) all the drives were recognized and there was nothing wrong with them. I have no clue what could be going on here.

Trying to understand how Digital Certificates and CA are indeed secure

I understand that Digital Certificates and Certificate Authorities (trusted 3rd parties) help prevent man in the middle attacks during HTTPS connections. However, I am confused on a few details.

Let’s say we have a client Alice and Bob who has a server mapped to “bob.com”.

When Bob (bob.com) asks a CA (let’s say veriSign) for a new certificate to be created and sends them his public key to be put inside the certificate, what is stopping a hacker from intercepting the request, switching the public key with their own, having the CA create a false certificate, and then returning this false certificate to Bob. Is the only protection here that Bob actually checks that the public key on the returned certificate matches what he originally sent in his request to the CA? And then I guess informing the CA that what he got back doesn’t match what he sent out, so the CA doesn’t maintain a false record?

Assuming that the newly created certificate Bob gets from veriSign is legit, let now say that Alice is going to make a request to “bob.com” via the HTTPS protocol. What is preventing a dual channel MITM attack where a hacker intercepts Bob’s new certificate on way to Alice, creates a new one, signs it with their own secret key (which was previously signed by verisign), but then also intercepts Alice’s request to veriSign when she asks for veriSign’s public key, and switches it out again with the matching public key to the malicious secret key. Now when Alice tries to check the integrity of the false certificate, it checks out because although she thinks she is checking the signature with veriSign’s public key, she is really using the malicious public key?

Trying SQL injection [on hold]

I am playing one game where i am trying to do sql injection. Point is to log in as admin(username field password field). In Url is parameter "?uid=4" which is probably vulnerable. I tried all payloads that are in burpsuite and those are 3 different results i get.
a) username field = admin
b) username field = Josh
c) username field is empty

And this is result from sqlmap

--- Parameter: uid (GET)     Type: time-based blind     Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)     Payload: uid=4 AND (SELECT 5670 FROM (SELECT(SLEEP(5)))DQVx) --- 

But i dont know how to use it to log in as admin.

Unable to create new partition, with fdisk or gparted. Trying to create EFI boot partition

First I tried fdisk, I tried

fdisk /dev/sdb

linux is installed in this ssd

then I hit ‘n’ and it says: all space for primary partition is in use And I can’t do anything after that.

Then I opened gparted and tried to create a new partition that way, and the new partition option is grayed out. enter image description here I’m running from boot media, because I heard you can’t edit partition while it’s mounted.

I have no efi partition from my previous windows installation. And I can’t boot Xubuntu without a bootloader The ssd is MBR. Can I create an efi partition on my HDD, a separate hard drive and will it work from there? Because I’m able to create new partitions from the hdd. But oddly not from ssd why?