Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #263394 > unrolled thread

Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]

Started by"Susmita/Rajib" <bkpsusmitaa@gmail.com>
First post2023-11-12 05:40 +0100
Last post2023-11-12 07:20 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.debian.user


Contents

  Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the  missing MySQL extension required by WordPress be installed?] "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-11-12 05:40 +0100
    [SOLVED] Uninstalling unwanted PHP and mariadb packages [WAS Re: How  could the missing MySQL extension required by WordPress be installed?] "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-11-12 07:20 +0100

#263394 — Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]

From"Susmita/Rajib" <bkpsusmitaa@gmail.com>
Date2023-11-12 05:40 +0100
SubjectUninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]
Message-ID<Hzaql-4OtP-5@gated-at.bofh.it>
From: "Andrew M.A. Cater" <amacater@einval.com>
Date: Sat, 11 Nov 2023 16:39:01 +0000
Message-id: <[🔎] ZU-uJRqeWXKorgEp@einval.com>
In-reply-to: <[🔎]
CAEG4cZXquvxryjdFLCgHBiteyx8mFm=e+KJCuSxNHHJ0+ZpEww@mail.gmail.com>,
https://lists.debian.org/debian-user/2023/11/msg00415.html

On Sun, 12 Nov 2023 at 07:42, Susmita/Rajib <bkpsusmitaa@gmail.com> wrote:
>
> On Sat, Nov 11, 2023 at 05:44:29PM +0530, Susmita/Rajib wrote:
> > Apologise for the typos and incorrect sentence constructions in my
[     ...     ]
> > Possible?
> >
>
> I'd suggest you remove
>
> php-common
> apache2
> apache2-bin
> apache2-data
> mariadb-client-10.5
>
> and then an apt autoremove.
>
> Then perhaps an apt-purge apache2 .. and so on.
> Then go back and remove any outlying packages that have not already been
> removed until you have no more left.
[     ...     ]

Ok. Thank you Mr. Cater, for your guidance.

[     ...     ]
> For the future - for any reader of this list, not just Rajib:
>
> If you don't know quite what you're installing and a single package installs
> lots of other packages, stop and consider before you install. Meta-packages
> like desktops pull in lots of dependencies, but so, as you've seen does
> PHP
>
> If you're really not sure: read lots then ask. If you say

I sincerely apologise, Mr. Cater.
I am not posting an excuse, but sometimes, the excitement of the
prospect of a new perspective and more wisdom becomes too overpowering
to restrain myself from undue risk-taking. A millennium of lost
opportunities, trampled hopes and prospects, the lack of a beautiful
and fulfilling community life and a prosperous society enhances the
excitement exponentially. In this regard we share our common pain with
the Israelis, suffering from multiple-centuries of genocide even many
times more than the 2nd World War Holocaust. Our foodgrains were
repeatedly diverted, causing many man-made famines for more than a
century, killing and displacing my ancestors and made us more
susceptible to diabetes and heart diseases. But as the Israelis also
endorse, the only people that didn't persecute them were us.

My conscience cries for the sufferings of a grand continuous
civilisation and her peoples, Mr. Cater.

Prof. C K Raju's articles entice with the prospect of identifying the
real perpetrators of such inhuman atrocities with more evidence. So
the excitement couldn't be contained.

> "I want to do X. I think that means I need to install Y and configure Z.
> >From reading ABC pages, I _think_ that means that I need to do the
> following but I'm not sure because page C says to do this and I don't
> understand. I'm running Debian 12.2 updated this week. "
>
>  - it becomes a lot easier to understand what you want.

Yes, I have followed the general sensible guidelines. But in
excitement I couldn't restrain myself from experimenting. I didn't
consider the problem to be so irritating. So I didn't consider that I
would have to ask for support later. I sincerely apologise, Mr. Cater.

[     ...     ]
> If you explain _exactly_ what error messages you get and how you get them
> that helps significantly. If you've done a web search and found a possible
> answer or that other people have had a similar problem, add that in.
>
> "I'm getting error message DEF from running this command. From the net,
> it looks as if other people have been having similar problems on older
> versions of Debian but not recently - am I reading this correctly"
>
> It shows that you have made an attempt to problem solve for yourself and
> people will be more willing to help and explain their suggestions.
[     ...     ]

By good coincidence, I follow this sensible recording of experiences.
But thank you for reminding and consolidating the idea behind the
actions in a clearer language.

> If the advice you get solves a problem - post that back to the list
> in the thread and change the message subject slightly to make it
> clear that this is an answer. For example:
>
> [SOLVED] Package foo fails to install in Debian 12.2. [Was: Cannot install
>  foo]
[     ...     ]

There is one problem with this approach, as stated earlier. For the
Mailing list, any change of subject from my Gmail webmail email-server
makes such an email detached from the main thread and treats it as a
different subject. Had Mailman also had an email editor for posting
messages, that would have been a better option.

However, I understand the difficulties and the legalities associated
with this added functionality and acknowledge the associated problems,
since FSF has to bear with the Deep State more, bringing an added
peril to itself. We already know the fate of Assange, Snowden and
myriads of unknown others.

In countries where the Law owes its existence to Xtian Morality
legitimising flat earth, land grab, usurpation, genocides, may the
real Hive Mind of the Holographic Universe, the Brahm, save us from
the faux construct.

The people who choose to empower us, despite facing all perils, have
our fullest admiration and wellwishes.

Between the two options therefore, I usually choose to keep all the
posts consolidated within a single thread for the future users. I hope
that with your greater experience, expertise and wisdom, you would be
able to guide me in this regard, w.r.t. gmail and Mailman.

> It is always possible that no-one else has ever seen anything similar. The
> advice you get from people here may always be a best guess as to a solution.
> The more clearly you can give information, the easier the problem solving
> becomes.
>
> If you have to ask lots of questions around the same subject, consider
> stopping and writing a summary post to write down what you've learned
> and solutions you have tried so far.
>
> SUMMARY - Package bar still failing to install after several tries
>
> "I have been given solution A in a post in this thread on November 1st.
> I did this but then got error message B - see post on November 3rd
>  so I did C on November 4th. The problem I have now is that the
> error message is DE"

All your notes shall be remembered, Mr. Cater. Thank you and best wishes.
Rajib
Etc.

[toc] | [next] | [standalone]


#263396 — [SOLVED] Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]

From"Susmita/Rajib" <bkpsusmitaa@gmail.com>
Date2023-11-12 07:20 +0100
Subject[SOLVED] Uninstalling unwanted PHP and mariadb packages [WAS Re: How could the missing MySQL extension required by WordPress be installed?]
Message-ID<HzbZ7-4PyR-1@gated-at.bofh.it>
In reply to#263394
For all the debian-users who might fall into the same ditch into which
I had fallen, to alert them ...

I thank Mr. Cater for his advice at
https://lists.debian.org/debian-user/2023/11/msg00443.html. I raed his
advice and understood that while uninstalling I should follow a path
chronologically reverse to the one I had followed while installing all
those packages on the 10th Nov 2023.

So what I did was that I noted down his advice on a plain text editor,
then opted for "uninstall completely ..." the following packages:
php-common
apache2
apache2-bin
apache2-data
mariadb-client-10.5

Following my practice of safety, I kept a note of the packages I had
installed, as recorded in my first post of this thread, at:
https://lists.debian.org/debian-user/2023/11/msg00384.html
as follows:
[quote]
The nearest that are available in Debian Bullseye :
default-mysql-server
default-mysql-server-core
php-mysql
php7.4-mysql
apache2
php-db
along with their dependencies.

I installed them all. ...
[/quote]

Then I went to my list of synaptic installation history and from the
block categories described earlier in:
https://lists.debian.org/debian-user/2023/11/msg00411.html,
individually selected the still unselected packages. All of them,
listed on the History list of 10th November 2023.

With a little anxiety, I proceeded for a complete uninstallation.

The Uninstallation completed without an error message (synaptic
reported in the "Changes Applied" window: "Successfully applied all
changes...") as follows:

[output]
(Reading database ... 270111 files and directories currently installed.)
Removing apache2 (2.4.56-1~deb11u2) ...
Removing apache2-bin (2.4.56-1~deb11u2) ...
dpkg: warning: while removing apache2-bin, directory
'/var/lib/apache2' not empty so not removed
Removing apache2-data (2.4.56-1~deb11u2) ...
Removing apache2-utils (2.4.56-1~deb11u2) ...
Removing default-mysql-server (1.0.7) ...
Removing default-mysql-server-core (1.0.7) ...
Removing mariadb-server-10.5 (1:10.5.21-0+deb11u1) ...
Removing galera-4 (26.4.11-0+deb11u1) ...
Removing libaprutil1-ldap:amd64 (1.6.1-5+deb11u1) ...
Removing libaprutil1-dbd-sqlite3:amd64 (1.6.1-5+deb11u1) ...
Removing libaprutil1:amd64 (1.6.1-5+deb11u1) ...
Removing libapr1:amd64 (1.7.0-6+deb11u2) ...
Removing libcgi-fast-perl (1:2.15-1) ...
Removing libhtml-template-perl (2.97-1.1) ...
Removing libcgi-pm-perl (4.51-1) ...
Removing mariadb-client-10.5 (1:10.5.21-0+deb11u1) ...
Removing libconfig-inifiles-perl (3.000003-1) ...
Removing libdbd-mariadb-perl (1.21-3) ...
Removing libfcgi-bin (2.4.2-2) ...
Removing libfcgi-perl:amd64 (0.79+ds-2) ...
Removing libfcgi0ldbl:amd64 (2.4.2-2) ...
Removing liblua5.3-0:amd64 (5.3.3-1.1+deb11u1) ...
Removing mailutils (1:3.10-3+b1) ...
Removing libmailutils7:amd64 (1:3.10-3+b1) ...
Removing mariadb-client-core-10.5 (1:10.5.21-0+deb11u1) ...
Removing libmariadb3:amd64 (1:10.5.18-0+deb11u1) ...
Removing libterm-readkey-perl (2.38-1+b2) ...
Removing mariadb-server-core-10.5 (1:10.5.21-0+deb11u1) ...
Removing mariadb-common (1:10.5.21-0+deb11u1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide
/etc/mysql/my.cnf (my.cnf) in auto mode
Removing php-db (1.10.0-1) ...
Removing php-pear (1:1.10.12+submodules+notgz+20210212-1) ...
Removing php-cli (2:7.4+76) ...
update-alternatives: using /usr/bin/php7.4 to provide /usr/bin/php
(php) in auto mode
update-alternatives: using /usr/bin/phar7.4 to provide /usr/bin/phar
(phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.4 to provide
/usr/bin/phar.phar (phar.phar) in auto mode
Removing php-xml (2:7.4+76) ...
Removing php7.4-xml (7.4.33-1+deb11u4) ...
Removing php7.4-cli (7.4.33-1+deb11u4) ...
Removing php7.4-readline (7.4.33-1+deb11u4) ...
Removing php-mysql (2:7.4+76) ...
Removing php7.4-opcache (7.4.33-1+deb11u4) ...
Removing php7.4-json (7.4.33-1+deb11u4) ...
Removing php7.4-mysql (7.4.33-1+deb11u4) ...
Removing socat (1.7.4.1-3) ...
Removing php7.4-common (7.4.33-1+deb11u4) ...
Removing php-common (2:76) ...
Warning: Stopping phpsessionclean.service, but it can still be activated by:
  phpsessionclean.timer
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for menu (2.1.48) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
(Reading database ... 268625 files and directories currently installed.)
Purging configuration files for php-common (2:76) ...
Purging configuration files for apache2 (2.4.56-1~deb11u2) ...
Purging configuration files for mariadb-common (1:10.5.21-0+deb11u1) ...
Purging configuration files for mariadb-client-10.5 (1:10.5.21-0+deb11u1) ...
Processing triggers for menu (2.1.48) ...
[/output]

So a SUMMARY becomes due:
To note down the bulk packages while installing, follow a path
chronologically reverse to the one followed during installing, then
from the "History of installed, upgraded and removed packages" also
select the associated packages installed along with the bulk packages
and remove them together at one shot.

So thank you all, Mr. Cater, Mr. debian-user and Mr. M, for your
gentle confidence-building pushes. In between, I also reported a troll
lurking.

Best wishes,
Rajib
Etc.
______________________________
Inspiration
Euclid Must Fall:
The “Pythagorean” “Theorem” and the rant of racist and civilizational
superiority
Prof C K Raju
https://doi.org/10.4314/ajct.v1i2.5
https://dx.doi.org/10.4314/ajct.v1i1.6

A few innovations
IN191986B
http://viXra.org/abs/2301.0140, abs/2301.0147, /abs/2302.0023, ⋯,

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web