Score:0

installation of SQL server in ubuntu 22.04

am flag
  1. wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
  2. sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/18.04/mssql-server-2019.list)"
  3. sudo apt-get update
  4. sudo apt-get install -y mssql-server

// i have tried to install sql server following the above commands in my newly installed ubuntu 22.04 machine and when i run the following command am stuck...

sudo /opt/mssql/bin/mssql-conf setup this is the error am getting from terminal

patrick@patrick-Lenovo-ideapad-330-15IGM:~$ sudo apt-get install -y mssql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mssql-server : Depends: libldap-2.4-2 but it is not installable
E: Unable to correct problems, you have held broken packages.
patrick@patrick-Lenovo-ideapad-330-15IGM:~$ cd /opt

Please i beg from the community to help me unlock this stalemate.. or lather i be helped how i can install sql to my newly installed ubuntu 22.04 machine with ease .. or the entire procedure... or what i should do....

Thanks in Advance

hr flag
Are you sure you should be using the `ubuntu/18.04/mssql-server-2019.list` repository file when you OS is actually ubuntu 22.04?
user2601069 avatar
am flag
Am Not even sure which server i should actually use please may i be helped how to solve my issue .. all i want is sql in my machine... I have really struggled before i get here
hr flag
Do you just want SQL, or MSSQL specifically?
cn flag
@steeldriver SQL Server is MSSQL ;-)
cn flag
You need either https://packages.microsoft.com/config/ubuntu/23.04/ or https://packages.microsoft.com/config/ubuntu/22.04
user2601069 avatar
am flag
I Need SQL ... Kindly assist me with the procedure.
cn flag
@user2601069 hmm what is unc;ear? use 1 of the 2 links to replace your download.The rest is the same.
user2601069 avatar
am flag
Thanks i have received those files but am abit confused how to use them in the termial
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.