On Sat, Dec 9, 2023 at 2:11 AM Timothy M Butterworth < timothy.m.butterwo...@gmail.com> wrote:
> > All, > > I am having a problem with apt. I tried to remove php-horde and it failed > to fully remove. Now it generates an error message. Any suggestions? > > sudo apt remove php-horde > Reading package lists... Done > Building dependency tree... Done > Reading state information... Done > The following packages will be REMOVED: > php-horde > 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. > 2 not fully installed or removed. > After this operation, 11.3 MB disk space will be freed. > Do you want to continue? [Y/n] > (Reading database ... 393448 files and directories currently installed.) > Removing php-horde (5.2.23+debian0-6) ... > /var/lib/dpkg/info/php-horde.postrm: 28: /etc/apache2/envvars: > /etc/default/locale: Permission denied > dpkg: error processing package php-horde (--remove): > installed php-horde package post-removal script subprocess returned error > exit status 126 > dpkg: too many errors, stopping > Errors were encountered while processing: > php-horde > Processing was halted because there were too many errors. > needrestart is being skipped since dpkg has failed > E: Sub-process /usr/bin/dpkg returned an error code (1) > > sudo apt install libapache2-mod-fcgid > Reading package lists... Done > Building dependency tree... Done > Reading state information... Done > libapache2-mod-fcgid is already the newest version (1:2.3.9-4). > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > 2 not fully installed or removed. > Need to get 0 B/1,855 kB of archives. > After this operation, 0 B of additional disk space will be used. > Do you want to continue? [Y/n] > Setting up libapache2-mod-fcgid (1:2.3.9-4) ... > /var/lib/dpkg/info/libapache2-mod-fcgid.postinst: 28: > /etc/apache2/envvars: /etc/default/locale: Permission denied > dpkg: error processing package libapache2-mod-fcgid (--configure): > installed libapache2-mod-fcgid package post-installation script subprocess > returned error exit status 126 > Errors were encountered while processing: > libapache2-mod-fcgid > needrestart is being skipped since dpkg has failed > E: Sub-process /usr/bin/dpkg returned an error code (1) > > Thanks > > Tim > All, I figured out the problem and apt is working fine now. Tim > -- > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ > ⠈⠳⣄⠀⠀ > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀