Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Cannot execute binary file apt-get
Cannot execute binary file apt-get
New to Debian. Just did a fresh install and am attempting to run apt-get. When I run without su, I get denied permission. When I run this command:
su brian apt-get update
brian is my username. I get prompted for my password, then get the following error message:
/usr/bin/apt-get: /usr/bin/apt-get: cannot execute binary file
Doing the same thing works in a mint install I have running. Any ideas?
su brian apt-get update
brian is my username. I get prompted for my password, then get the following error message:
/usr/bin/apt-get: /usr/bin/apt-get: cannot execute binary file
Doing the same thing works in a mint install I have running. Any ideas?
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Cannot execute binary file apt-get
1) Become Root by inputting
It will ask for the password
2)Then issue the command
Code: Select all
su
2)Then issue the command
Code: Select all
apt update
Re: Cannot execute binary file apt-get
This got me a bit farther but then I get this message:arochester wrote:1) Become Root by inputtingIt will ask for the passwordCode: Select all
su
2)Then issue the commandCode: Select all
apt update
"Updating from such a repository can't be done securely, and is therefore disabled by default." I get this message even if I use
Code: Select all
--allow-unauthenticated
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Cannot execute binary file apt-get
Sources.list:
sources.list.d folder is empty#
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main
deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main
# Line commented out by installer because it failed to verify:
# deb http://security.debian.org/debian-security stretch/updates main contrib
# Line commented out by installer because it failed to verify:
# deb-src http://security.debian.org/debian-security stretch/updates main contrib
# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ stretch-updates main contrib
deb http://deb.debian.org/debian/ stretch main
# deb-src http://deb.debian.org/debian/ stretch-updates main contrib
Re: Cannot execute binary file apt-get
at this point it might be a good idea to mosey over to wiki.debian.org and see what they have to say about a good sources.list for stable.
only 1 entry seems too little to me, but i might be wrong.
and you should probably comment out the CD.
did you install without an internet connection? that would require manual configuration later on.
only 1 entry seems too little to me, but i might be wrong.
and you should probably comment out the CD.
did you install without an internet connection? that would require manual configuration later on.
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Cannot execute binary file apt-get
Change your sources list to
Copy and paste if necessary.
Try updating again.
Code: Select all
deb http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
Try updating again.
Re: Cannot execute binary file apt-get
That worked. Not sure why they didn't just include those sources as part of the default install.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 71 times
Re: Cannot execute binary file apt-get
The installer disables them if it can't connect during the install.
MX Linux packager and developer