meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.27k stars 680 forks source link

W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument #869

Open diakbar opened 7 years ago

diakbar commented 7 years ago

I got that error when trying apt-get install in KALI Linux deploy using Android Apps Linux Deploy. Is there something I missing from installation??

nbraunstein commented 7 years ago

I have gotten this same error all day. Two fresh installs on a pi

lacroutelacroute commented 7 years ago

me too fresh install today

charzhar commented 7 years ago

Need help with this too

jedau commented 7 years ago

I have encountered this as well on a fresh Kali armhf on a pi3. The previous time I didn't encounter this. Would be great if there's a resolution to this.

willinspire commented 7 years ago

Running Pi-3 with Kali for months now with no issues. Started encountering this issue today during an attempt to apt-get update

cseedz commented 7 years ago

Same problem here...

jamall007 commented 7 years ago

Same here, I'm on a Rasp Pi 3 model B. I encountered the error when I attempted to run apt-get install linux-headers-$(uname -r)

nbraunstein commented 7 years ago

Rpi3 here too

On Sun, Nov 12, 2017 at 3:52 PM, jamall007 notifications@github.com wrote:

Same here, I'm on a Rasp Pi 3 model B. I encountered the error when I attempted to run apt-get install linux-headers-$(uname -r)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/meefik/linuxdeploy/issues/869#issuecomment-343779163, or mute the thread https://github.com/notifications/unsubscribe-auth/AYHiFnmxhS-oIPVd3OTVZQWKIK8UMV1Jks5s14SwgaJpZM4QR94a .

-- Noah Braunstein nbraunstein@gmail.com

jamall007 commented 7 years ago

One of the following packages is the culprit, everything was fine before I did this upgrade:

Start-Date: 2017-11-11 13:48:06 Commandline: apt-get upgrade -y Upgrade: libapt-inst2.0:armhf (1.6~alpha3, 1.6~alpha4), libegl1:armhf (0.2.999+git20170802-5, 1.0.0-1), libexpat1-dev:armhf (2.2.3-1, 2.2.3-2), apt:armhf (1.6~alpha3, 1.6~alpha4), libgl1:armhf (0.2.999+git20170802-5, 1.0.0-1), libbsd0:armhf (0.8.6-2, 0.8.6-3), libgles2:armhf (0.2.999+git20170802-5, 1.0.0-1), libapt-pkg5.0:armhf (1.6~alpha3, 1.6~alpha4), libexpat1:armhf (2.2.3-1, 2.2.3-2), libapparmor1:armhf (2.11.1-2, 2.11.1-3), libglx0:armhf (0.2.999+git20170802-5, 1.0.0-1), libdbus-glib-1-2:armhf (0.108-2, 0.108-3), apt-utils:armhf (1.6~alpha3, 1.6~alpha4), libxres1:armhf (2:1.0.7-3, 2:1.2.0-2), libglvnd0:armhf (0.2.999+git20170802-5, 1.0.0-1) End-Date: 2017-11-11 13:49:06

sk3lk0 commented 7 years ago

how fix?

Jinovas commented 7 years ago

getting this error too on my nexus 7, but not my nexus 5 though...hmm

sgt-pepper920 commented 7 years ago

Day 2 same error thinking it's an issue with arm version my computer apt-get update fine but rpi3 I am receiving the same err there as everyone else

Dunuin commented 7 years ago

I have the same problem. I tried to install "raspi3-firmware" but it failed because of a not mounted "/boot". I changed the "/etc/fstab" for "/boot" from "noauto" to "auto", rebooted and since then "apt-get update" returns this error. I used PINN to install Kali to my Raspi3.

sgt-pepper920 commented 7 years ago

it seemed to try a little harder this morning but still receiving the same error Get:1 http://archive-7.kali.org/kali kali-rolling InRelease [30.5 kB] Get:2 http://archive-7.kali.org/kali kali-rolling/main Sources [11.6 MB] Get:3 http://archive-7.kali.org/kali kali-rolling/contrib Sources [66.6 kB] Get:4 http://archive-7.kali.org/kali kali-rolling/main armhf Packages [15.1 MB] Get:5 http://archive-7.kali.org/kali kali-rolling/contrib armhf Packages [94.9 kB] Fetched 26.9 MB in 29s (914 kB/s) Reading package lists... Done W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument W: store: aptMethod::Configuration: could not load seccomp policy: Invalid argument

nbraunstein commented 7 years ago

Does anyone else have slim installed? Is this issue happening after "apt-get dist-upgrade"

Have you tried "sudo apt get update -y"

"dkpg --reconfigure -a"

I have also performed a fresh install, I installed one package at a time and reboot it after each one. Anyone else try ethernet instead wifi?

I have fixed my issue with a fresh install, although I'm not sure what I did.

On Nov 16, 2017 07:56, "sgt-pepper920" notifications@github.com wrote:

it seemed to try a little harder this morning but still receiving the same error Get:1 http://archive-7.kali.org/kali kali-rolling InRelease [30.5 kB] Get:2 http://archive-7.kali.org/kali kali-rolling/main Sources [11.6 MB] Get:3 http://archive-7.kali.org/kali kali-rolling/contrib Sources [66.6 kB] Get:4 http://archive-7.kali.org/kali kali-rolling/main armhf Packages [15.1 MB] Get:5 http://archive-7.kali.org/kali kali-rolling/contrib armhf Packages [94.9 kB] Fetched 26.9 MB in 29s (914 kB/s) Reading package lists... Done W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument W: store: aptMethod::Configuration: could not load seccomp policy: Invalid argument

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/meefik/linuxdeploy/issues/869#issuecomment-344967347, or mute the thread https://github.com/notifications/unsubscribe-auth/AYHiFqrhUWjhfJNv9AumT_LQszv7iyiFks5s3FtHgaJpZM4QR94a .

Dunuin commented 7 years ago

it seemed to try a little harder this morning but still receiving the same error

Same here.

Does anyone else have slim installed? Is this issue happening after "apt-get dist-upgrade"

I never did an dist-upgrade. Only "apt-get update && apt-get upgrade" once every 1 to 3 days.

Have you tried "sudo apt get update -y"

Its the same problem with "apt-get update -y".

"dkpg --reconfigure -a"

"dpkg-reconfigure -a" isn't working. It needs a package specified.

Anyone else try ethernet instead wifi?

Only Wifi.

Edit: I did an "apt-get dist-upgrade" now and it updated and installed many packages but encountered several errors while processing: udev, udisk2, xserver-xorg-core, xserver-xorg-input-wacom, xserver-xorg-input-synaptics, gvfs-daemons, xserver-xorg-input-evdev, xserver-xorg-video-fbdev, xserver-xorg-input-libinput, gvfs:armhf, x-server-xorg-input-all

julian-klode commented 6 years ago

It means your kernel does not support seccomp, or you are using an emulation layer that does not support seccomp.

It is not an error. It is a warning I added temporarily to see if turning that off for people who do not have seccomp works correctly. It will go away in a later apt release.

jedau commented 6 years ago

@julian-klode Thanks for the clarification, man!

sgt-pepper920 commented 6 years ago

Was there a fix to this as of yet it's months later and I'm still getting this

gjertmagnus commented 6 years ago

Suddenly that "error" appers . Would really appriciate some help on this issue. Thanks

darkt1981 commented 6 years ago

So any eta on when this will be fixed ? its been over a month now ?

reybango commented 6 years ago

@julian-klode when do you plan on remove this? It's a blocking issue now.

Rakitic commented 6 years ago

I can't get round this problem.I just installed Kali Linux and i am using android vnc viewer but I can't remove the error w: http: aptMethod:: configuration: could not load seccomp policy: Invalid argument

adrian-rt commented 6 years ago

same I have this issues on WSL .

NatoBoram commented 6 years ago

Fresh WSL install on fresh W10 install, got this error! Also cat /etc/resolv.conf returns nameserver 8.8.8.8. Error :

W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
Xudmud commented 6 years ago

To be fair... W: is Warning, not necessarily an error. I too had this warning come up, which I'm assuming is something WSL-related. Doesn't seem to be impacting functionality, however.

Also cat /etc/resolv.conf returns nameserver 8.8.8.8.

8.8.8.8 is Google's public DNS nameserver, so if you're using that in Windows it'll use the same in whatever WSL distro you're using. (https://en.wikipedia.org/wiki/Google_Public_DNS)

Z3r0Un1x commented 6 years ago

Same error

qu4nd commented 6 years ago

Same for subsystem on Windows. Just in case that's of any interest.

maoxian-1 commented 6 years ago

Same for subsystem on Windows.

galenguyer commented 6 years ago

Same for fresh install of Kali Rolling on Subsystem for Windows on Build 16299.248. Error shows up anytime I use apt update or apt upgrade. Kali version info:

PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2018.1"
VERSION_ID="2018.1"
ID_LIKE=debian
fqzhou commented 6 years ago

Same issue in WSL Kali, when I perform update and other installations. But there are so lots of tools still not downloaded and installed-_-!

fan@FAN-SP4:~$ sudo apt-get update [sudo] password for fan: Get:1 https://mirrors.ustc.edu.cn/kali kali-rolling InRelease [30.5 kB] Get:2 https://mirrors.ustc.edu.cn/kali kali-rolling/non-free Sources [121 kB] Get:3 https://mirrors.ustc.edu.cn/kali kali-rolling/main Sources [11.8 MB] Get:4 https://mirrors.ustc.edu.cn/kali kali-rolling/contrib Sources [65.5 kB] Get:5 https://mirrors.ustc.edu.cn/kali kali-rolling/main amd64 Packages [16.0 MB] Get:6 https://mirrors.ustc.edu.cn/kali kali-rolling/non-free amd64 Packages [164 kB] Get:7 https://mirrors.ustc.edu.cn/kali kali-rolling/contrib amd64 Packages [106 kB] Fetched 28.3 MB in 1min 3s (448 kB/s) Reading package lists... Done W: https: aptMethod::Configuration: could not load seccomp policy: Invalid argument W: store: aptMethod::Configuration: could not load seccomp policy: Invalid argument

ghost commented 6 years ago

same issue

BosnaZmaj commented 6 years ago

It would be nice if someone officially would acknowledge the issue and at least say that they are working on it. WTF

R3dB0b commented 6 years ago

Best to do this: echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp

Should run after that

Thanks to the Thamas Papp guy from this article: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1732030

Erreur32 commented 6 years ago

Or working for me:

https://www.rootlinks.net/2018/03/10/windows-10-wsl%e3%81%aekali-linux%e3%81%ab%e3%83%87%e3%82%b9%e3%82%af%e3%83%88%e3%83%83%e3%83%97%e7%92%b0%e5%a2%83%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/

ruguparte commented 6 years ago

hey guys.... write this code in your terminal..... echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp

diveyez commented 6 years ago

Anyone consider microsoft WSL team is actually trying to stop proper install and usage of the tools? Lol

BosnaZmaj commented 6 years ago

the echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp did not work for me. I keep getting permission denied error and su nor sudo echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp work

R3dB0b commented 6 years ago

Best to run as root first, type the following sudo su - root

You will be prompted to enter your password. The above command sudo allows you to run as different user, Su is super user access then - root is the command to run as

Once the cursor shows the user as root instead of the user you created then run the command echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp work

darkt1981 commented 6 years ago

no such file or directory ?

R3dB0b commented 6 years ago

Best to run as root first, type the following sudo su - root

You will be prompted to enter your password. The above command sudo allows you to run as different user, Su is super user access then - root is the command to run as

Once the cursor shows the user as root instead of the user you created then run the command echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp

R3dB0b commented 6 years ago

Typo sorry no work word at the end

darkt1981 commented 6 years ago

for me after runnign that command its show me this:

">"

and is waiting for a input, seems like its not echoing the command

R3dB0b commented 6 years ago

It's all one line no carriage return. The comment box separates it in two lines on github

darkt1981 commented 6 years ago

thanks i alreayd made the file manuel its fixed now thank god xD

BosnaZmaj commented 6 years ago

Thanks @R3dB0b, that did the trick

qu4nd commented 6 years ago

Working with @R3dB0b 's solution here as well!

MetaFight commented 6 years ago

TO REITERATE: This is not an error. There is nothing to fix.

See https://github.com/meefik/linuxdeploy/issues/869#issuecomment-345659515

Sudo'ing commands you don't understand from the internet is not a solution.

R3dB0b commented 6 years ago

The sandboxing mechanism doesn't allow to run certain commands on WSL such as when attempting to do apt-get. Please be careful and ideally only use the commands above to resolve the error you get in Windows Store sources Kali Linux and the issue seccomp works in that hybrid virtualized environment. Redeploy Kali once the issue is fixed.

StoneOnFluff commented 6 years ago

Hey @R3dB0b I've run into an isue with "Best to run as root first, type the following sudo su - root

You will be prompted to enter your password. The above command sudo allows you to run as different user, Su is super user access then - root is the command to run as

Once the cursor shows the user as root instead of the user you created then run the command echo 'apt::sandbox::seccomp "false";' > /etc/apt/apt.conf.d/999seccomp"

I recieved the issue -su: /ect/apt/apt.conf.d/999seccomp: No such file or directory.

and i am running The kali linux from the windows 10 store.

Please help. Thanks.