TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Quickstart tutorial on how to deploy an API on Amazon EC2

35 pointsby cheshover 12 years ago

3 comments

o0-0oover 12 years ago
Following your instructions yields the following error, FYI.<p>ubuntu@domU-12-31-39-0E-8D-17:~$ sudo apt-get install build-essential git zlib1g-dev libssl-dev libreadline-gplv2-dev imagemagick libxml2-dev libxslt1-dev openssl libreadline6 libreadline6-dev zlib1g libyaml-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison libpq-dev libpq5 libeditline-dev Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libxslt1-dev' instead of 'libxslt-dev' Note, selecting 'libncurses5-dev' instead of 'ncurses-dev' libreadline6 is already the newest version. zlib1g is already the newest version. openssl is already the newest version. 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:<p>The following packages have unmet dependencies: libreadline6-dev : Conflicts: libreadline-gplv2-dev but 5.2-11 is to be installed E: Unable to correct problems, you have held broken packages.<p>Any ideas anyone?
评论 #5154058 未加载
评论 #5152226 未加载
code_chimpover 12 years ago
I don't know about this part:<p><i>After executing this step you are connected to your instance. We will have to install new packages. Some of them require root credentials, so you will have to set a new root password: sudo passwd root. Then login as root: su root.</i><p>Wouldn't using the "sudo su" command be a better approach? Granted I am only a developer not a sysadmin, but I thought the whole point of Ubuntu's sudo setup was to not have a usable root login.
评论 #5151793 未加载
评论 #5152265 未加载
评论 #5152130 未加载
jerzynover 12 years ago
Yes, of course, you can use sudo command with the default ubuntu user or configure your /etc/sudoers file. I have put it this way to show both approaches, but you are right about the better practice.