LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   p7zip wants to remove mint-meta-core and another vital component of Linux Mint 17.3 when I try to remove it (https://www.linuxquestions.org/questions/linux-newbie-8/p7zip-wants-to-remove-mint-meta-core-and-another-vital-component-of-linux-mint-17-3-when-i-try-to-remove-it-4175633824/)

HannemanThrashKing 07-11-2018 05:10 PM

p7zip wants to remove mint-meta-core and another vital component of Linux Mint 17.3 when I try to remove it
 
I want to remove that package, it doesn't even work, but when I try to do that :

Code:

sudo apt-get remove p7zip
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gcalctool gnome-calculator gnome-system-tools
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  mint-meta-core mint-meta-mate p7zip
0 upgraded, 0 newly installed, 3 to remove and 33 not upgraded.
After this operation, 1,056 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Does not look like I can get rid of it. I should've listened to Firefox's strange warning about that file being bad for my computer...I found that to be a strange error, I ran p7zip before, but it doesn't even show up in the menus, in older installs. I run Mint 17.3 MATE, so I can't definitely remove these packages. I guess that's the problem with p7zip...for Firefox to warn me about it, is strange, it didn't warn me about p7zip-full and p7zip-rar, but that p7zip package as a version just say 15.07, nothing about distro or anything else.

Anyways, seems like this is bad news and could explain the problem in that other thread of mine I made a few hours earlier, but let's keep it to this issue, help me get rid of that package without truly unnecessary dependencies (for p7zip) to get removed with it, I'm not willing to start the process of removing and reinstalling those packages in a regular, booted up, session.

jefro 07-11-2018 07:07 PM

You have to press the "y" key instead of the "n" key.

0 upgraded, 0 newly installed, 3 to remove and 33 not upgraded.

Generally you do the apt update or upgrade too. That may fix the 33 or more.

HannemanThrashKing 07-11-2018 07:51 PM

I don't want to press the Y key, considering the packages it takes with it! Maybe I should have posted in Software and not the noobs forum :p

The 33 ignored are ignored on purpose, I don't let updates level 4 and 5 to even show up in Update Manager. Not ready to install these potentially unsafe updates when I have problems such as this and that other thread I made.

jefro 07-11-2018 08:01 PM

https://linux.die.net/man/8/apt-get for more exacting options. Your build may not have all of those options.


https://www.howtogeek.com/229682/how...ions-in-linux/

One I guess could look at the installer or the associated program source for how it interacts with the system. It may be that pkzip simply is a single program.

Your version may be something like this. 16.02+dfsg-4

Ztcoracat 07-11-2018 09:11 PM

Quote:

I don't want to press the Y key, considering the packages it takes with it!
After looking here I see why you don't. As it will rm a lot of shared lib's.

https://packages.debian.org/stretch/p7zip

Removing that pkg could make your system unstable:-

https://ubuntuforums.org/showthread.php?t=1513821

HannemanThrashKing 07-12-2018 06:04 AM

Maybe this should be kicked up to a more advanced forum, I need help to get out of this situation, because it seems like it is related to that issue here when installing a program through apt-get install

Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Recommended packages:
  simplescreenrecorder-lib
The following NEW packages will be installed:
  simplescreenrecorder
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 1,258 kB of archives.
After this operation, 3,564 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu/ trusty/main simplescreenrecorder amd64 0.3.11+1~ppa1~trusty1 [1,258 kB]
Fetched 1,258 kB in 0s (1,296 kB/s)           
Selecting previously unselected package simplescreenrecorder.
(Reading database ... 338561 files and directories currently installed.)
Preparing to unpack .../simplescreenrecorder_0.3.11+1~ppa1~trusty1_amd64.deb ...
Unpacking simplescreenrecorder (0.3.11+1~ppa1~trusty1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1.1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
/usr/bin/mandb: can't open /usr/share/man/man1/7zr.1.gz: Permission denied
Setting up simplescreenrecorder (0.3.11+1~ppa1~trusty1) ...

That file is actually shown to be under the permission of my user, all other files in that directory are root access only. It seems like this is related to a 7zip related program. That p7zip gui firefox somehow found out it was bad for my computer (the message was that basic), I had p7zip installed before on other instances of Mint 17.x and it worked okay. Seems like the makers of Firefox know that something is up on that p7zip official download page. It caused this issue and not only that, I have to unrar, unzip, un-anything in the terminal now, even if archive manager, file roller, all the files that also work in terminal, even arj and I haven't seen arj archives in more than a decade. It does extract small .gz.tar and such using the contextual menu, but big files as multiple rars will never fully unrar, and more. So, I guess I should have installed Timeshift before that. I haven't learned how to use Timeshift as a kind of Windows System Restore thing, even though it seems it can't be. It could if booting live would let you reinstall without formatting the whole drive, but I've never seen this done except by truly pro users of boot-repair.

Anyways, I need help in excising that program that does not work, causes issues as shown and has attached itself to dependencies it shouldn't need for just an archival gui app.

hydrurga 07-12-2018 08:09 AM

Please paste the output from:

Code:

sudo apt-cache policy p7zip
and confirm that you are using Mint 17.3.

HannemanThrashKing 07-12-2018 10:10 AM

Code:

p7zip:
  Installed: 15.09-1
  Candidate: 15.09-1
  Version table:
 *** 15.09-1 0
        100 /var/lib/dpkg/status
    9.20.1~dfsg.1-4+deb7u3build0.14.04.1 0
        500 http://ubuntu.mirror.iweb.ca/ trusty-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
    9.20.1~dfsg.1-4 0
        500 http://ubuntu.mirror.iweb.ca/ trusty/universe amd64 Packages

The system tab in system-monitor says

LINUX MINT
Release Linux Mint 17.3 Rosa 64-bit
Kernel Linux 3.16.57-031657-generic x86_64
MATE 1.12.0

jefro 07-12-2018 01:17 PM

What happens when you try to remove it by "exact" name??

Ztcoracat 07-12-2018 02:01 PM

Look here:

https://askubuntu.com/questions/2315...apt-get-remove

hydrurga 07-12-2018 05:31 PM

Thanks. The idea now is to remove the package and replace it with the repo version (as it is a dependency of mint-meta-core and mint-meta-mate, you'd probably be best to keep it installed).

Ok, so let's go down a level and do everything with dpkg to keep dependency resolution out of our hair.

First download the latest version of the package from here: https://packages.ubuntu.com/trusty-u...p7zip/download

Then, force remove the current package with:

Code:

sudo dpkg --purge --force-all p7zip
If that works, clean the cache to get rid of the old installed deb:

Code:

sudo apt-get clean
Then install the deb package you previously downloaded with:

Code:

sudo dpkg --install ./p7zip_9.20.1~dfsg.1-4+deb7u3build0.14.04.1_amd64
If all is ok, then check your package system:

Code:

dpkg --audit

sudo apt-get check

By the way, is there any specific reason that you're running Mint 17.3 when the latest version is Mint 19?

HannemanThrashKing 07-12-2018 09:23 PM

I'll be trying that, seems like you know what you're talking about. I'm at the point where only dpkg in terminal itself is a bit of a headache, that and the cat command, I've been helped out of sticky situations with that one too.

I run 17.3 because of my graphic adapters...can't even run Mint 18.x because I can't run my proprietary AMD drivers for the graphic cards on 17.3 even past kernel 4.17, I would run a more recent kernel but I've had some bad things happen when I tried one in Update Manager in 3.19-0.32, which I used to run, I guess I can't anymore if I go by what Ukuu shows me when I have the option not to show RC and unstable kernels. But that'll wait. Either that or I reinstall straight from a 17.3 iso which does come with 3.19-0.28 with it unlike upgrading .1/.2 and it's getting updates till mid april 2019, I'm comfortable with it, I'll hope to figure out AMDGPU-PRO or whatever included AMD drivers that AMD are working on for Linux like Nvidia's are these days for my cards when I'm forced to leave 17.3 . I had an NVidia card back when I started learning linux and that was when AMD graphic adapters were easier to work with in ubuntu 11.04/11.10 and one had to install the NVIDIA proprietary driver, which was a pain and worked half the time. I know it's not the same anymore these days but that R9 Nano mines really well with the older Radeon HD 7850 for gaming, not to mention the about 8 exits on that 7850.

I'll be giving feedback right afterwards. I got myself out of a situation too by downloading and installing a package after apt itself was deleted in an accident, I got the right apt on that library of packages and saved myself from a strange situation. As less things become occult to me in the terminal, I try the things I wouldn't before for the hell of it, it's how I've learned since 2010 to do things in Debian Linux and its flavours.

HannemanThrashKing 07-12-2018 09:31 PM

Yup, sudo apt-get check turned out fine.

I wonder why I still don't have p7zip's gui show up in the menu though, I wanted it since it does a particular job that's rather long winded if using terminal.

I had to remove the / in front of p7zip's package I downloaded, never had to put such in front of a deb filename before dpkg -i/--install. but I guess that was just a fast-typer's typo.

Thanks a lot, I'll keep this open for a while and see if it solved the .7z1r man-db error I get when installing something simple which I think was related to the issue with p7zip. I'll see soon enough, I'll install some small application and see what the rundown after the install happens. If all of that is solved, which I think it is, I'll declare it as solved.

Thanks a lot hydrurga!

hydrurga 07-12-2018 09:38 PM

Ok, but note that 17.3 will be no longer supported after April 2019.

If I were you, I would try running an 18.3 or even a 19 live media and try to resolve that graphics issue with the help of the Mint forums (https://forums.linuxmint.com/).

Also, don't shy away from trying new kernels just because you had one bad experience. You can always roll back in the Grub boot menu or using a system snapshot if things go awry. You're best to use a kernel as up-to-date as you can, or at least the latest in a supported range, for security reasons.

I would advise you not to use Ukuu in Mint - use the Update Manager that Mint provides so that you running a supported kernel.

HannemanThrashKing 07-12-2018 09:42 PM

Well kernel 3.16.57 is brand new, they still maintain 3.16.x it seems. Yeah I will definitely doing what you're saying when support for Mint 17 LTS is about to end.


All times are GMT -5. The time now is 08:28 PM.