I've recently installed Zorin-os and I have run into a problem where if I try and use the terminal to install or update an app it says this, Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package jdk-23 needs to be reinstalled, but I can't find an archive for it.
I have tried fixing it but i am unable to find a solution.
try in terminal
sudo apt clean
sudo apt autoremove
and
sudo apt update && sudo apt upgrade
then try again
I tried to do sudo apt clean but nothing happended and when i tried sudo apt autoremove this message appeared:Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package jdk-23 needs to be reinstalled, but I can't find an archive for it.
CTRL
ALT
F2
to enter a terminal.
sudo -i
and now enter your password.
sudo dpkg --remove --force-all ubuntu-mono
sudo apt-get update
Now you need to restart your PC, and with luck, you will be able to install your updates again.
Additionally, start Software Updater and click on Stop button before it completes. Then click on Settings button. Go to first Tab and change your software sources to Main Server. You will be asked for your login password to make this change, then reload Software Updater.
When i do as follows this shows up: dpkg: warning: ignoring request to remove ubuntu-mono which isn't installed
I would change your Software Updater settings. As a further check, Open up Disks and run the SMART test option to make sure there is not an issue with potential hard drive failure.
I tried to open software updater but it would not open for me
Now I think I finally understand, why you were trying to update your system, via the terminal, instead of simply using the software store, its because your software store is broken for reasons unknown.
Go back into terminal and type this...
sudo apt install --reinstall apt
Also run this command too for good measure...
sudo apt install --reinstall gnome-software
If this still does not work, you might need to re-install the OS, but lets leave re-install of the OS as a last resort for right now.
I would take it back even further. Did you check the checksum of the .iso to make sure the downloaded .iso was not corrupt?
How do i check this? Sorry i am new to this
I tried the first command and i got this message:Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: The package jdk-23 needs to be reinstalled, but I can't find an archive for it.
I could not find my Zorin OS.iso file anywhere, would that be causing the issue?
Have you checked your Downloads folder? Are you dual-booting?
I did check my downloads file and nothing was there, i am not dual-booting
Did you install the jdk package ? If yes did you add a ppa/repo ?
sudo apt install openjdk
Welcome to the Forum!
Is this a fresh Installation and that happens directly after install or did You used the System a while before that happened?
Exactly.
sudo dpkg --remove --force-all jdk-23