easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

Can't install ee stack on fresh machine: "No package named 'nginx-custom'"

Open vitaligent opened this issue 11 years ago • 9 comments

Here's the stack trace. I'm happy to provide more details or let you login to my machine. Thanks for creating easyengine. I love this project!

root@quad:~# ee stack install Adding repository for MySQL Adding repository for Nginx Adding repository for PHP Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/cache.py", line 198, in getitem return self._weakref[key] File "/usr/lib/python3.4/weakref.py", line 125, in getitem o = self.datakey KeyError: 'nginx-custom'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/ee", line 9, in load_entry_point('ee==3.0', 'console_scripts', 'ee')() File "/usr/local/lib/python3.4/dist-packages/ee-3.0-py3.4.egg/ee/cli/main.py", line 84, in main app.run() File "/usr/local/lib/python3.4/dist-packages/cement-2.4.0-py3.4.egg/cement/core/foundation.py", line 694, in run self.controller._dispatch() File "/usr/local/lib/python3.4/dist-packages/cement-2.4.0-py3.4.egg/cement/core/controller.py", line 455, in _dispatch return func() File "/usr/local/lib/python3.4/dist-packages/cement-2.4.0-py3.4.egg/cement/core/controller.py", line 461, in _dispatch return func() File "/usr/local/lib/python3.4/dist-packages/ee-3.0-py3.4.egg/ee/cli/plugins/stack.py", line 1257, in install EEAptGet.install(self, apt_packages) File "/usr/local/lib/python3.4/dist-packages/ee-3.0-py3.4.egg/ee/core/aptget.py", line 86, in install if not install_package(self, package): File "/usr/local/lib/python3.4/dist-packages/ee-3.0-py3.4.egg/ee/core/aptget.py", line 64, in install_package pkg = apt_cache[package_name.strip()] File "/usr/lib/python3/dist-packages/apt/cache.py", line 205, in getitem raise KeyError('The cache has no package named %r' % key) KeyError: "The cache has no package named 'nginx-custom'"

vitaligent avatar Feb 11 '15 17:02 vitaligent

I figured it out. The script needs to install "software-properties-common". It assumes it's there. So the add-apt-repository command fails.

vitaligent avatar Feb 11 '15 18:02 vitaligent

The script also needs to install the "bsdutils" package. I'm installing this on a minimal config, so all these packages are probably assumed to be present.

Reopening issue because I didn't fix it myself in the source code. I can't seem to find where the list of packages is kept.

vitaligent avatar Feb 11 '15 18:02 vitaligent

my own solution so far, installing software-properties-common and python-software-properties, then set locale to UTF-8 with this code: sudo locale-gen en_US.UTF-8 export LANG=en_US.UTF-8

at least, in my server could work

kudabesix avatar Feb 11 '15 18:02 kudabesix

@kudabesix - You are correct. I had to fix locale and install python-software-properties as well. Thanks.

vitaligent avatar Feb 11 '15 18:02 vitaligent

@kudabesix @vitaligent , Thanks for pointing this issue. We all did all testing where our environment is en_US-UTF-8, so we never faced this issue. We will fixing this issue as soon as possible in EE 3.0

gau1991 avatar Feb 12 '15 05:02 gau1991

@kudabesix , What was your previous locale? Can you give me output of following command?

echo $LANG

gau1991 avatar Feb 12 '15 08:02 gau1991

In my case I had to install "python-software-properties" to fix it.

Greybane avatar Feb 12 '15 11:02 Greybane

Any idea when this issue will be addressed? Because it's literally broken at this moment :(

hasinhayder avatar Feb 20 '15 19:02 hasinhayder

@hasinhayder , We allready fixed this issue with EE 3.0.2, Which version of EasyEngine you are using?

gau1991 avatar Feb 23 '15 05:02 gau1991