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

2023-11-11 Thread Susmita/Rajib
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.03-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

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

2023-11-11 Thread Susmita/Rajib
From: "Andrew M.A. Cater" 
Date: Sat, 11 Nov 2023 16:39:01 +
Message-id: <[🔎] zu-ujrqewxkor...@einval.com>
In-reply-to: <[🔎]
CAEG4cZXquvxryjdFLCgHBiteyx8mFm=e+kjcusxnhhj0+zp...@mail.gmail.com>,
https://lists.debian.org/debian-user/2023/11/msg00415.html

On Sun, 12 Nov 2023 at 07:42, Susmita/Rajib  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 opt

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

2023-11-11 Thread Andrew M.A. Cater
On Sat, Nov 11, 2023 at 05:44:29PM +0530, Susmita/Rajib wrote:
> Apologise for the typos and incorrect sentence constructions in my
> earlier post. But I am sure that Mr.  would be able to bypass the
> errors to extract the information intended for him.
> 
> My synaptic has a Log file for the installed packages yesterday:
> 
> 
> 
> Commit Log for Fri Nov 10 21:04:10 2023
> 
> Upgraded the following packages:
> mariadb-common (1:10.5.18-0+deb11u1) to 1:10.5.21-0+deb11u1
> 
> Installed the following packages:
> default-mysql-server (1.0.7)
> galera-4 (26.4.11-0+deb11u1)
> libcgi-fast-perl (1:2.15-1)
> libcgi-pm-perl (4.51-1)
> libconfig-inifiles-perl (3.03-1)
> libdbd-mariadb-perl (1.21-3)
> libdbi-perl (1.643-3+b1)
> libfcgi-bin (2.4.2-2)
> libfcgi-perl (0.79+ds-2)
> libfcgi0ldbl (2.4.2-2)
> libhtml-template-perl (2.97-1.1)
> libterm-readkey-perl (2.38-1+b2)
> mariadb-client-10.5 (1:10.5.21-0+deb11u1)
> mariadb-client-core-10.5 (1:10.5.21-0+deb11u1)
> mariadb-server-10.5 (1:10.5.21-0+deb11u1)
> mariadb-server-core-10.5 (1:10.5.21-0+deb11u1)
> socat (1.7.4.1-3)
> 
> 
> 
> Commit Log for Fri Nov 10 21:13:50 2023
> 
> Installed the following packages:
> default-mysql-server-core (1.0.7)
> 
> 
> 
> Commit Log for Fri Nov 10 21:25:16 2023
> 
> Installed the following packages:
> php-common (2:76)
> php-mysql (2:7.4+76)
> php7.4-common (7.4.33-1+deb11u4)
> php7.4-mysql (7.4.33-1+deb11u4)
> 
> 
> 
> Commit Log for Fri Nov 10 21:37:54 2023
> 
> Installed the following packages:
> apache2 (2.4.56-1~deb11u2)
> apache2-bin (2.4.56-1~deb11u2)
> apache2-data (2.4.56-1~deb11u2)
> apache2-utils (2.4.56-1~deb11u2)
> libapr1 (1.7.0-6+deb11u2)
> libaprutil1 (1.6.1-5+deb11u1)
> libaprutil1-dbd-sqlite3 (1.6.1-5+deb11u1)
> libaprutil1-ldap (1.6.1-5+deb11u1)
> liblua5.3-0 (5.3.3-1.1+deb11u1)
> 
> 
> 
> Commit Log for Fri Nov 10 21:44:41 2023
> 
> Installed the following packages:
> php-cli (2:7.4+76)
> php-db (1.10.0-1)
> php-pear (1:1.10.12+submodules+notgz+20210212-1)
> php-xml (2:7.4+76)
> php7.4-cli (7.4.33-1+deb11u4)
> php7.4-json (7.4.33-1+deb11u4)
> php7.4-opcache (7.4.33-1+deb11u4)
> php7.4-readline (7.4.33-1+deb11u4)
> php7.4-xml (7.4.33-1+deb11u4)
> 
> 
> So what do I need to do to clean-uninstall them all?
> 
> 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.

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 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.

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.
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]

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" 

Hope this helps,

Andy

[amaca...@debian.org]