same thing that i wrote first “codeblocks-common need to be reinstalled blah blah blah” that’s frustating that you can’t do nothing
sooo i don’t know if it can help you but i tried see status of codeblocks common and it gaves me this sudo dpkg -s codeblocks-common Package: codeblocks-common Status: install reinstreq half-installed Priority: optional Section: x11 Installed-Size: 7201 Maintainer: Jens Lody <jens@codeblocks.org> Architecture: all Source: codeblocks Version: 17.12-1 Config-Version: 17.12-1 Replaces: codeblocks (<< 17.12-1) Breaks: codeblocks (<< 17.12-1) Description: common files for Code::Blocks IDE Code::Blocks is the open-source, cross-platform Integrated Development Environment (IDE). It is based on a self-developed plugin framework allowing unlimited extensibility. Most of its functionality is already provided by plugins. . This package contains the architecture-independent files of Code::Blocks. Homepage: http://www.codeblocks.org
That really should not be happening. OK… Well, here is where we are stuck for the moment…
In terminal run this and paste the output here. Let’s see if we can ID the jam up;
dpkg --get-selections | grep hold
sooo i tried ur command it doesn’t gave me any output so i tried onli dpkg --get-selections and it gaves me a very long list so i paste u only codeblocks section codeblocks install codeblocks-common install codeblocks-dev install codeblocks-headers install codeblocks-libwxcontrib0 install codeblocks-wxcontrib-dev install codeblocks-wxcontrib-headers install
try removing each
sudo apt remove --purge codeblocks-wxcontrib-headers
sudo apt remove --purge codeblocks-wxcontrib-dev
sudo apt remove --purge codeblocks-libwxcontrib0
sudo apt remove --purge codeblocks-headers
The Title edit got a laugh out of me.
But I also accept the challenge. We can beat this. that lock in /var/lib is being stubborn but if it comes down to it- We can manually remove that lock if needs be. I prefer to not go right to that yet, though. it’s better to let dpkg manage the package than to Force the package.
But if the above removals don’t work, you may try Force Install with
sudo apt install -f
If THAT fails, we will try removing the lock, then installing synaptic, then using Synaptic to remove the offending Codeblocks package. Which is an iddity on its own as the codeblocks-common package Is In The Repository- I already checked.
tried all 4 it gaves me the same error codeblocks-common need to be reinstalled blah blah blah
Have you yet tried the
sudo apt install -f
command?
yes it gaves me the same error btw i can’t install or remove anything
Yes, with a broken held package, nothing can be installed or removed- Normally. However, removal of the Broken package can be done- as long as we ID it.
What command did you FIRST try running to install codeblocks in the first place?
Was it
sudo apt-get install codeblocks
If so, can you try
sudo apt install --reinstall codeblocks
it gaves me the same error so i think i installed it via .deb o .rpm file
And
sudo dpkg --remove --force-remove --reinstreq
does not work?
IF not… let’s break some locks.
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
Test that we broke the locks with
sudo apt-get install synaptic
BTW, only .deb files on this distro- APT cannot install .rpm files. Those are for a different package management system.
nothing happend same error, btw i readed online that ubuntu can also install rpm files and i know that zorin is based on ubuntu 18.04 LTS
Literally, this made my jaw drop.
ok…
Choose your method: You can use the GUI approach with terminal command
pkexec nautilus
If using Zorin Core
OR
pkexec thunar
If using Zorin Lite.
Navigate to
/var/cache/apt/archives and search that directory for ANY codeblocks files and remove them.
Then navigate to
/var/lib/dpkg/info
and search for any codeblocks files and remove them, as well.
You already removed the locks
So— Reboot the puppy to ensure a clean start.
Then try installing Synaptic from terminal after booting up.
" btw i readed online that ubuntu can also install rpm files and i know that zorin is based on ubuntu 18.04 LTS"
Don’t know where you read that but… No. It is only possible to install .rpm packages on Ubuntu if you use “alien” to convert the package to a .deb file- but otherwise, .rpm cannot be directly installed on Ubuntu. Or on Zorin.
i tried ur command it gaves me the following error
Unable to init server: Impossible to connect: connection refused
(nautilus:8080): Gtk-WARNING **: 10:58:19.an another number: cannot open display:
p.s i deleted the last number before gtk-WARNING bcs i think thats my ip
p.s (2) oh ok so that was fake
Are you using Zorin Core or Zorin Lite?
idk i think core btw i typed release -a and it gaves me Distributor ID: Zorin Description: Zorin OS 15.3 Release: 15 Codename: bionic
ok im quite sure it is core bcs i got gnome desktop enviorment
I am honestly at a loss. The commands above to resolve the broken package should have worked. I have faced this problem dozens of times and never had such issues.
But Nautilus failing xhost has me baffled.
The GTK warnings can be ignored- they only deal with the Window Skinning. It does not display your IP or anything, but also would not stop Nautlius from running.
What happens if you open “Files” and run Nautilus normally?
bruh yesterday i trayed for over 3 hours i rebooted at least 20 times but nothing i tried to install cerebro yesterday so i think something goes wrong btw it gaves the same error of Gtk-Warning blah blah
Well, at this time, you at least have access to all your files, right? You can access Nautilus normally?
If you have duplicity (It comes with Zorin) and is listed as “Back ups” - If this was me on my computer, I would back up my personal files (save back ups on seprate partition or drive or cloud) and Wipe and reinstall Zorin at this point.