Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Bugs & Fixes 2 years ago
Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.
Turn Your Knowledge into Earnings.
I accidentaly upgraded my system instead of just putting the updates on, and not my moodle won't work because PHP is messed up.
It tells me I have unmet dependencies, and problems with PHP5-cli.
sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: linux-headers-3.19.0-18 linux-headers-3.19.0-18-generic linux-headers-3.19.0-26 linux-headers-3.19.0-26-generic linux-headers-3.19.0-30 linux-headers-3.19.0-30-generic linux-headers-3.19.0-31 linux-headers-3.19.0-31-generic linux-headers-3.19.0-39 linux-headers-3.19.0-39-generic linux-headers-3.19.0-42 linux-headers-3.19.0-42-generic linux-headers-3.19.0-43 linux-headers-3.19.0-43-generic linux-headers-3.19.0-47 linux-headers-3.19.0-47-generic linux-headers-3.19.0-49 linux-headers-3.19.0-49-generic linux-headers-4.2.0-30 linux-headers-4.2.0-30-generic linux-image-3.19.0-18-generic linux-image-3.19.0-26-generic linux-image-3.19.0-30-generic linux-image-3.19.0-31-generic linux-image-3.19.0-39-generic linux-image-3.19.0-42-generic linux-image-3.19.0-43-generic linux-image-3.19.0-47-generic linux-image-3.19.0-49-generic linux-image-4.2.0-30-generic linux-image-extra-3.19.0-18-generic linux-image-extra-3.19.0-26-generic linux-image-extra-3.19.0-30-generic linux-image-extra-3.19.0-31-generic linux-image-extra-3.19.0-39-generic linux-image-extra-3.19.0-42-generic linux-image-extra-3.19.0-43-generic linux-image-extra-3.19.0-47-generic linux-image-extra-3.19.0-49-generic linux-image-extra-4.2.0-30-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: pkg-php-tools Suggested packages: dh-make The following packages will be REMOVED: libapache2-mod-php5 The following packages will be upgraded: pkg-php-tools 1 upgraded, 0 newly installed, 1 to remove and 318 not upgraded. 15 not fully installed or removed. Need to get 0 B/38.2 kB of archives. After this operation, 10.2 MB disk space will be freed. Do you want to continue? [Y/n] y WARNING: The following packages cannot be authenticated! pkg-php-tools Install these packages without verification? [y/N] y (Reading database ... 560010 files and directories currently installed.) Removing libapache2-mod-php5 (5.6.11+dfsg-1ubuntu3.2) ... ERROR: Module php5 does not exist! dpkg: error processing package libapache2-mod-php5 (--remove): subprocess installed pre-removal script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php5 E: Sub-process /usr/bin/dpkg returned an error code (1)
How can I get my php fixed?? I can't seem to get the dependencies fixed.
Running sudo dpkg --configure -a I get a lot of dependency problems-leaving unconfigured.
sudo dpkg --configure -a
sudo apt-get install -f I get
sudo apt-get install -f
The following additional packages will be installed: pkg-php-tools Suggested packages: dh-make The following packages will be REMOVED: libapache2-mod-php5 The following packages will be upgraded: pkg-php-tools 1 upgraded, 0 newly installed, 1 to remove and 319 not upgraded. 15 not fully installed or removed. Need to get 0 B/38.2 kB of archives. After this operation, 10.2 MB disk space will be freed. Do you want to continue? [Y/n] y WARNING: The following packages cannot be authenticated! pkg-php-tools Install these packages without verification? [y/N] y (Reading database ... 560010 files and directories currently installed.) Removing libapache2-mod-php5 (5.6.11+dfsg-1ubuntu3.2) ... ERROR: Module php5 does not exist! dpkg: error processing package libapache2-mod-php5 (--remove): subprocess installed pre-removal script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php5 E: Sub-process /usr/bin/dpkg returned an error code (1)
The problem is you no longer have PHP 5 and are running PHP7 .. You may need to update some PHP plugins and files for the new PHP7. php.ini's are now located at /etc/php/7.0 not /etc/php5 .. You may need to change things in apache or moodle to reflect this change
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.