Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] Ubuntu 16.04 failed to install SIFT #357

Closed
flamusdiu opened this issue Mar 25, 2019 · 13 comments
Closed

[CLI] Ubuntu 16.04 failed to install SIFT #357

flamusdiu opened this issue Mar 25, 2019 · 13 comments

Comments

@flamusdiu
Copy link

flamusdiu commented Mar 25, 2019

I have been attempting to setup Sift in a VM in Qubes OS. I have already setup a Ubunut 16.04 VM as the base. I am using sift install mode=packages-only as the install command.

However, the installation fails due to missing dependencies. I have attached the saltstack.log.

Installation followed from: https://github.com/teamdfir/sift-cli#installation

saltstack.log

@ekristen
Copy link
Contributor

What's the output of the command? If generally tells you the primary problem. The core of the problem looks to be like there is something wrong with your apt like there was a package that was not installed properly so now all packages fail.

@flamusdiu
Copy link
Author

@ekristen That what I guessed but not sure what's going on. I guess I could install Ubuntu in Virtualbox on my other computer and try it there.

Here's the error output:
Screenshot_2019-03-26_07-54-16

Here's the list of repo's that are being used with apt:
Screenshot_2019-03-26_08-02-55

@flamusdiu
Copy link
Author

If I attempt to install any of the packages directly, I get an error stating no package found.

@flamusdiu
Copy link
Author

Just did a fresh install of Ubuntu 16.04.6 in Virtualbox. Not as many failures:

image

@flamusdiu
Copy link
Author

After returning to this issue, I am finding that install script modifies the sources.list file removing the "main" target from deb http://archive.ubuntu.com/ubuntu xenial main universe during the install. This is causing several packets to fail install. Even if you add a seperate line for the repo target, the script removes it as well.

@ekristen
Copy link
Contributor

ekristen commented Apr 7, 2019

This is a default sources.list, notice that main and universe are not together.

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://security.ubuntu.com/ubuntu/ xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse

@flamusdiu
Copy link
Author

flamusdiu commented Apr 7, 2019 via email

@ekristen
Copy link
Contributor

ekristen commented Apr 7, 2019

I just re-ran the install script that handles the repos and main and universe are still there as they are by default.

@flamusdiu
Copy link
Author

@ekristen I again had issues, I ended up added a source file under /etc/apt/sources.list.d:

$ cat /etc/apt/sources.list.d/ubuntu-main.list 
deb http://archive.ubuntu.com/ubuntu xenial main

I do not know why the script removes that from the sources.list file.

@ekristen
Copy link
Contributor

We do not remove any source.

@flamusdiu
Copy link
Author

I understand that @ekristen. I cannot figure out why the sources get rewritten in the sources.list. I'll try and put up a video but all I know if I modify the sources and add the "main" to that line then run sift install then it's removed.

@flamusdiu
Copy link
Author

However, I am getting

  Failed building wheel for M2Crypto
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c5hHIU/M2Crypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zPz6e8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-c5hHIU/M2Crypto/

log.txt

Looks like something missing. I'll have to look more into it a bit later due to some classwork I need to finish.

@stale
Copy link

stale bot commented Jul 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 18, 2019
@stale stale bot closed this as completed Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants