Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How Install MySql on the new Raspbian

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
Marbun
Posts: 1
Joined: 2018-10-24 19:19

How Install MySql on the new Raspbian

#1 Post by Marbun »

Hello guys,
I am a new user for rasbian, I have already install in my raspberry PI3 last day,
I wish make raspberry as my webserver, that's why, i need to install MySQL into raspberryPi.
I typed below to my raspbian.>>>sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian stretch/main armhf Packages [181 kB]
Fetched 221 kB in 2s (78.7 kB/s)
Reading package lists... Done
>>>clear
(pi"raspberrypi display change automatically)
>>>sudo apt-get install - t stretch apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package t
E: Unable to locate package stretch

My question is last responding from my raspberry are E:Unable to located t & E: Unable to locate package stretch. How can i fix it? so i can continue to install MySql on raspberry?

Anybody help me please? thanks very much

User avatar
Ardouos
Posts: 1075
Joined: 2013-11-03 00:30
Location: Elicoor II
Has thanked: 1 time
Been thanked: 4 times

Re: How Install MySql on the new Raspbian

#2 Post by Ardouos »

You are installing apache there, if you want to install mysql install the mysql-server too (or mariadb server).

The error occurred because you placed a space in between the - and the t. This will make apt think you want to install the packages t and stretch... You do not need to specify the repo unless there is ambiguity between two different repos.
There is only one Debian | Do not break Debian | Stability and Debian | Backports

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀


Post Reply