Title
#general
Mystery Incorporated

Mystery Incorporated

01/27/2022, 6:36 AM
Did the debian repo get rolled back from 5.1? Because I have a bunch of ubuntu hosts on 5.1 and others on 5.0.1 and it seems that 5.0.1 is latest on debian repo?
a

alessandrogario

01/27/2022, 11:43 AM
Interesting, we'll check out the logs on our end; we don't update that repo manually, there's a procedure that will sign our packages from a verified public tag and then update the repository
11:54 AM
The packages that we can see on the repo are:
<Key>deb/osquery_5.1.0-1.linux_amd64.deb</Key>
<Key>deb/osquery_5.1.0-1.linux_arm64.deb</Key>
<Key>deb/pool/deb/main/o/osquery/osquery_5.1.0-1.linux_amd64.deb</Key>
<Key>deb/pool/deb/main/o/osquery/osquery_5.1.0-1.linux_arm64.deb</Key>
<Key>rpm/aarch64/osquery-5.1.0-1.linux.aarch64.rpm</Key>
<Key>rpm/osquery-5.1.0-1.linux.aarch64.rpm</Key>
<Key>rpm/osquery-5.1.0-1.linux.x86_64.rpm</Key>
<Key>rpm/x86_64/osquery-5.1.0-1.linux.x86_64.rpm</Key>

<Key>deb/osquery-dbgsym_5.1.0-1.linux_amd64.deb</Key>
<Key>deb/osquery-dbgsym_5.1.0-1.linux_arm64.deb</Key>
<Key>deb/pool/deb/main/o/osquery-dbgsym/osquery-dbgsym_5.1.0-1.linux_amd64.deb</Key>
<Key>deb/pool/deb/main/o/osquery-dbgsym/osquery-dbgsym_5.1.0-1.linux_arm64.deb</Key>
<Key>rpm/aarch64/osquery-debuginfo-5.1.0-1.linux.aarch64.rpm</Key>
<Key>rpm/osquery-debuginfo-5.1.0-1.linux.aarch64.rpm</Key>
<Key>rpm/osquery-debuginfo-5.1.0-1.linux.x86_64.rpm</Key>
<Key>rpm/x86_64/osquery-debuginfo-5.1.0-1.linux.x86_64.rpm</Key>
11:54 AM
The raw packages are there, at least
12:00 PM
I can confirm that the DEB repo is working fine
12:02 PM
# apt search osquery
Sorting... Done
Full Text Search... Done
osquery/deb 5.1.0-1.linux amd64
  osquery is an operating system instrumentation toolchain.

osquery-dbg/deb 4.0.2-1.linux amd64
  osquery is an operating system instrumentation toolchain.

osquery-dbgsym/deb 5.1.0-1.linux amd64
Stefano Bonicatti

Stefano Bonicatti

01/27/2022, 12:06 PM
And just to clarify, there's only one repo for both Ubuntu and Debian
Mystery Incorporated

Mystery Incorporated

01/27/2022, 11:47 PM
That's really strange, if say I do
sudo apt install osquery
the response is:
osquery is already the newest version (5.0.1-1.linux).
How can that be? Of course I do sudo apt update to refresh the package list first
11:48 PM
The repo it is targeting is
Hit:6 <https://pkg.osquery.io/deb> deb InRelease
a

alessandrogario

01/27/2022, 11:50 PM
can you maybe see if it was locked?
11:50 PM
google tells me it's
sudo apt-mark showhold
11:50 PM
or dpkg --get-selections and some grep
Stefano Bonicatti

Stefano Bonicatti

01/27/2022, 11:52 PM
Also, worth checking
/var/lib/apt/lists/pkg.osquery.io_deb_dists_deb_InRelease
and
/var/lib/apt/lists/pkg.osquery.io_deb_dists_deb_main_binary-amd64_Packages
Mystery Incorporated

Mystery Incorporated

01/27/2022, 11:54 PM
Oh I'm on arm64 when I cat /var/lib/apt/lists/pkg.osquery.io_deb_dists_deb_InRelease I see a lot of amd64 packages is that my issue?
11:56 PM
I can see
e06b4237c43ceea31d98578272460bab 16016342 .refs/main/osquery_5.1.0-1.linux_arm64.deb
in that file actually
11:56 PM
That file being
/var/lib/apt/lists/pkg.osquery.io_deb_dists_deb_InRelease
Stefano Bonicatti

Stefano Bonicatti

01/27/2022, 11:57 PM
What about the Packages one? There should be an equivalent for arm64
Mystery Incorporated

Mystery Incorporated

01/27/2022, 11:58 PM
11:59 PM
I think that might be my problem? It looks like it only has the file for amd64?
Stefano Bonicatti

Stefano Bonicatti

01/27/2022, 11:59 PM
hum indeed
12:00 AM
You might want to check how the repo has been defined in
/etc/apt/sources.list
Mystery Incorporated

Mystery Incorporated

01/28/2022, 12:00 AM
ok I'll need to change the arch from this I imagine
sudo add-apt-repository 'deb [arch=amd64] <https://pkg.osquery.io/deb> deb main'
Stefano Bonicatti

Stefano Bonicatti

01/28/2022, 12:00 AM
yeah
Mystery Incorporated

Mystery Incorporated

01/28/2022, 12:02 AM
Yep that fixed it thanks for the help guys
12:03 AM
I must have missed changing the arch type when adding the repo on a few hosts