Uninstall and fresh reinstall

Forum for questions and support relating to the 1.30.x releases only.
Locked
lilmissndemon
Posts: 17
Joined: Thu Apr 27, 2017 9:57 pm

Uninstall and fresh reinstall

Post by lilmissndemon »

Ok can some one guide me on how to completely remove zm mysql etc so that i can try a fresh try at this? i have ubuntu server 16.04 (only used for a plex server) and im trying to run two webcams in zoneminder from that server ...ive tried so many different approaches to this that it seems best way is to just try again with a fresh install of zm but i dont want to reinstall ubuntu cuz its set up for plex as mentioned before...also the webcams are seen as connected theyre just not viewable without gui on that server...any help u can provide is much appreciated
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Uninstall and fresh reinstall

Post by bbunge »

sudo su

service zoneminder stop

apt remove zoneminder

apt purge zoneminder

apt autoremove

mysql -u root -p

mysql> DROP DATABASE zm;

mysql> \q

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
lilmissndemon
Posts: 17
Joined: Thu Apr 27, 2017 9:57 pm

Re: Uninstall and fresh reinstall

Post by lilmissndemon »

bbunge wrote: Fri May 05, 2017 7:26 pm sudo su

service zoneminder stop

apt remove zoneminder

apt purge zoneminder

apt autoremove

mysql -u root -p

mysql> DROP DATABASE zm;

mysql> \q

https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Ty so much ive entered all u attached (getting mysql unmet dependencies notice) but i have no more time tonight hopefully that when i reinstall mysql those things will be erased ty for yer quick response ill keep ya posted how it goes
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Uninstall and fresh reinstall

Post by bbunge »

If you are getting unmet dependencies for MySQL it is likely you did not set up LAMP correctly. Removing Zoneminder should not remove anything still needed by another installed application or program.

Run this to try to fix things:

sudo apt-get -f install
lilmissndemon
Posts: 17
Joined: Thu Apr 27, 2017 9:57 pm

Re: Uninstall and fresh reinstall

Post by lilmissndemon »

ok when i tried that apt-get -f install it returned this error

Preparing to unpack .../mysql-server-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.7.
If are sure you want to downgrade to 5.7, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.18-0ubuntu0.16.04.1_amd64.deb
lilmissndemon
Posts: 17
Joined: Thu Apr 27, 2017 9:57 pm

Re: Uninstall and fresh reinstall

Post by lilmissndemon »

could this be a conflict from mariadb when i tried the script? how can i remove the problems?
Locked