Skip to content

Instantly share code, notes, and snippets.

@eliza-abraham
Last active December 27, 2015 23:59
Show Gist options
  • Save eliza-abraham/7410542 to your computer and use it in GitHub Desktop.
Save eliza-abraham/7410542 to your computer and use it in GitHub Desktop.
Issues that occur on Ubuntu
1. Heroku Toolbelt Issue
2. MongoDb Issue
3. MergeList /var/lib/apt/lists Issue
4. Host 'host_name' is blocked
Heroku Toolbelt update issue
$sudo apt-add-repository 'deb http://toolbelt.herokuapp.com/ubuntu ./'
$wget -O- https://toolbelt.heroku.com/apt/release.key | apt-key add -
$sudo apt-get update
$sudo apt-get install heroku-toolbelt
Host 'host_name' is blocked because of many connection errors.
Unblock with 'mysqladmin flush-hosts'
$ mysqladmin flush-hosts
mysqladmin: refresh failed; error: 'Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
$ mysql -u root -p
$ <your password>
# GRANT RELOAD ON *.* TO 'root'@'localhost';
$ sudo service mysql restart
“Problem with MergeList /var/lib/apt/lists” Error In Ubuntu 11.04
$sudo rm /var/lib/apt/lists/* -vf
$sudo apt-get update
MongoDb Issue
$sudo rm /var/lib/mongodb/mongod.lock
$sudo -u mongodb mongod -f /etc/mongodb.conf --repair
$sudo start mongodb
$sudo status mongodb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment