Installing HA on a computer what OS

Yes - you might need to do apt-get update (or apt update as per the article - they’ll do the same thing) beforehand.

That goes and gets an up-to-date list of packages from the repository. (I didn’t mention it because I guessed it would have been done recently.)

Unless you used a very strange method to install Debian…

I followed the instructions…….I did all that originally but I did it again after restarting Debian 9 this morning

`apt update`   
`apt upgrade`  
`reboot`  
`apt install sudo`  

and I still get the same message

Package sudo is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available form another source

tonight I’m going to re-install Debian 9 using the network install instead of USB install.

What method did you guys that use Debian use to install HA?

If you reinstall, make sure you DON’T enter a root password!!!

1 Like

Thank you
I read your post and I was NOT going to enter a password for root

1 Like

When you have it running, run sudoers (can’t remember if you need to download it) and add your username to the sudoers then it won’t ask for your password every time you enter a command…

You’ll need to google sudoers for the exact command switches.

1 Like

David - I think you mean ‘visudo’? That’s the command that lets you edit the /etc/sudoers file. You can edit it directly, but visudo is a bit more secure - checks permissions etc after your edit.

@ramdisk - I imagine you must have something confused in your /etc/apt/sources.list file or in one of the files within /etc/apt/sources.list.d/ - I install Debian on some machine or VM every couple of weeks, using a variety of methods, and I can’t recall ever failing to install sudo :-). But you may find a clean install to be the easiest if you haven’t done much work on it so far.

1 Like

Might be… i’m Just going off memory…

Thanks pal…I seam to always find anomalies.

or just use the root account for performing maintenance and installing stuff…you’ve overly complicated the entire thing

1 Like

I re-installed Debian 9 and did not set password for root, so far sudo works. I’m trying to follow HASSio install

    udo -i
    add-apt-repository universe
    apt-get update
    apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq       network-manager socat software-properties-common
    curl -fsSL get.docker.com | sh
    curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install" | bash -s

the add-apt-repository universe did not load so I moved on to load docker and get this is the message

root@debian:~# curl -sSL https://get.docker.com | sh

Executing docker install script, commit: 40b1b76

  • sh -c apt-get update -qq >/dev/null
  • sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sh -c curl -fsSL “https://download.docker.com/linux/debian/gpg” | apt-key add -qq - >/dev/null
    Warning: apt-key output should not be parsed (stdout is not a terminal)
  • sh -c echo “deb [arch=i386] https://download.docker.com/linux/debian stretch edge” > /etc/apt/sources.list.d/docker.list
  • sh -c apt-get update -qq >/dev/null
  • sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
    E: Unable to locate package docker-ce

any ideas on what to do next?

Are you using i386 Debian install?

yes I am using i386 Debian

Looks like the update following the installation of the apt repo for docker failed for some reason. Try

apt-get update

and see if there is a failure.

[quote=“ramdisk, post:32, topic:98753, full:true”] i386 Debian
[/quote]

Why?

I’m guessing that’s your issue.

1 Like

I installed from USB using i386 Debian image…not sure what you mean “i386 Debian” may be my issue. I’m a newbie to all this Linux stuff…spent 7hrs reading about how to install HASSIO on Linux, loading re-loading Debian with no password for root, trying to install docker and all I have is unable to locate packages and errors. Maybe I just missed something but it sure is frustrating not sure where to turn any help be appreciated

my last try I installed ubuntu server 18.04 and now I get “unable to locate package” same as before when trying to install docker

Again. Why?

Why i386?

Are you installing 32 bit Ubuntu also?

Use AMD64. Please.

Docker doesn’t support 32bit x86 processors, so there’s no package for it to find

2 Likes

I recently got a NUC and moved from an RPi. Steps to success…

  1. Installed Ubunutu 16.04 LTS
  2. Installed Docker
  3. Installed HA via Docker

Whole process took less than 1 hr. It’s super simple.

1 Like

OMG I just got docker installed in ubuntu server 18.04.
I know this is going to sound stupid but under ubuntu I had to get to root to install docker, yes I tried under Debian as root.

Did not know that Docker needs 64bit version, thanks

Ah, yes, you do need a 64-bit Linux for this. (An ‘amd64’ rather than ‘i386’ architecture.)

These days it’s almost impossible to find an i386 version of Ubuntu Server, but Debian (my preference) still supports both so it’s an easier mistake to make!

1 Like