Xubuntu 19.0.4 Unable to install any packages without reinstalling java installer

I cannot install oracle-java12-installer due to being unable to accept the license agreement through the terminal. Furthermore, I am unable to install, remove, or purge any packages without reinstalling the oracle-java12-installer. It is as if oracle’s Java has locked down dpkg.

After reinstalling python3-pip, /usr/bin/pip3 is missing

So I “accidentally” messed up my pip3 with pip3 install --upgrade pip. Afterwards, I tried fixing it by reinstall pip3:

sudo apt purge python3 python3-pip sudo apt install python3 python3-pip 

… then I followed the instructions from here

sudo python3 -m pip uninstall pip  sudo apt install python3-pip --reinstall 

Now when I try using pip3, I get the following errors:

>>>pip3 bash: pip3: command not found >>> python3 -m pip install numpy /usr/bin/python3: No module named pip 

It seems pip3 is not in /usr/bin/, or wherever it was originally.

I’m not sure if pip3 was reinstalled correctly. How should I fix this?

Fixing UUID change in Ubuntu without reinstalling

I recently deleted a partition containing a distribution which I didn’t want to use. Now when I booted next time, i found myself in a grub rescue mode screen. I searched a bit, and did the following steps:

  1. Made a bootable media, and analysed which of the device blocks was my root partition. In my case, it was /dev/sda9.

  2. I also searched my boot efi partition, which was /dev/sda8

  3. Mounted both the partitions in /mnt and /mnt/efi respectively

  4. I ran the following command

for i in /sys /proc /run /dev; do sudo mount –bind “$ i” “/mnt$ i”; done

  1. Chroot to my root partition, and ran update-grub

  2. It showed the following message – “cannot create/boot/grub/grub.cfg.new directory nonexistent

  3. I reinstalled grub using grub-install in the root directory, and ran update-grub afterwards successfully

I am able to get to the grub boot menu now. But it doesn’t shows the distribution in whose root partition I originally installed grub on. Now the problem is, i am unable to boot to any of my distribution (i had 3) except Windows. Can someone suggest any solution which may not include reinstalling the distributions from scratch?

Can Ubuntu 18.04 be fixed without reinstalling

I have win 7 and installed Ubuntu 18.04. It went well and I used it for most of the day. Then I rebooted and chose win7. It did come up but it couldn’t access anything. Like the explorer would not come up and it couldn’t run any programs.
I re-installed it and now it comes up but Ubuntu doesn’t.
So, I thought I’d go through the Ubuntu install and see if there was an option to “fix”, but all it comes up with is to remove that and re-install over it.
Isn’t there some way to do this without a complete re-install? (I was so proud to have gotten my Thunderbird contents moved to Ubuntu, I’d hate to have to do that again). Thanks

Reinstalling correct grub package to Acer device 18.04

After installing ubuntu to my machine (Acer Aspire F5-572G), UEFI is unable to detect grub as the boot manager. The closest answer to fixing this is Unable to install Ubuntu on Acer Aspire ES1-533.

The issue is that this solution above proposess sudo apt-get install --reinstall grub-efi-amd64. However my machine is of Intel 64 bit architecture.. and not AMD.. When preforming apt-cache search grub-efi it provides the possible packages:

grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-dbg grub-efi-amd64-signed grub-efi-ia32 grub-efi-ia32-bin grub-efi-ia32-dbg 

Since my computer is Intel 64-bit arch, I’m not completely sure of the consequences either installing a ia32 or amd64…

Hence I am wanting to know:

  • Would amd64 bit work?
  • Is there any risk to choosing ia32 with 64 bit archeture?
  • Any other possible method of getting grub noticed by UEFI?

Note: I have wiped hard disk recently and able to reinstall ubuntu to hard drive if anything breaks 🙂

Cheers

Can any malware survive disk formatting and removing all partitions before reinstalling the OS? [duplicate]

This question already has an answer here:

  • Is making a clean install enough to remove potential malware? 8 answers

Can any malware survive disk formatting and removing all partitions before reinstalling the OS? If that is the case, then what can one do to be certain of having cleared all malware from his pc?

What is equivalent of reinstalling Windows 10 in upgrade mode(software + data remains with new OS) in Ubuntu

what happened: Was using Ubuntu 18.10 on Acer Nitro AN515-52 , got error “initramfs unpacking failed…” after updating system , previous 2 kernels are also not booting due to some other different errors.

Problem: I built & installed few software with certain config which I dont have right now. Is there any way in which newer ubuntu 19 or ubuntu 18 can be installed so that the user data & softwares remains.

After Reinstalling Windows 10 And Formatting EFI Partition, Ubuntu Is not booting

I had dual boot PC with Ubuntu and Windows 10. I reinstalled Windows 10 and Deleted EFI partion before reinstalling Windows 10. Now I want to add grub but shimx64.efi is not present in EFI. Here is pastebin log generated by boot-repair tool: http://paste.ubuntu.com/p/7phBvPJFKD/

Please Help me, Thank you.