- Import the public key used by the package management system.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
- Create a list file for MongoDB.
#!/bin/bash | |
# source: https://www.linuxquestions.org/questions/debian-26/apt-get-update-gets-stuck-while-reading-package-list-on-my-slug-795324/ | |
mv /var/lib/dpkg/status /var/lib/dpkg/status.broken.bak | |
cp /var/lib/dpkg/status-old /var/lib/dpkg/status | |
rm -rf /var/lib/apt/lists/* | |
dpkg --configure -a | |
aptitude update | |
aptitude upgrade |
#!/bin/bash | |
# ########################################### | |
# Title :PrinTxt | |
# Description :This script print given text with different style | |
# Author :Rashko Petrov | |
# Website :https://rashkopetrov.dev | |
# GitHub :https://gist.github.com/rashkopetrov/4a4a96b1c83f4c8cc82497065cd3d266/ | |
# Date :2021-07-07 | |
# Version :0.21.07.07 - 2021-07-07 | |
# Usage :bash printxt.sh [option] [text] |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 | |
dpkg-reconfigure locales |
<?php | |
function getPostValue( $name ) { | |
if ( empty( $_POST[ $name ] ) ) { | |
return ''; | |
} | |
return $_POST[ $name ]; | |
} | |
function printOldValue( $name = '' ) { |
Solution found at github
Warning:
mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.