Git Product home page Git Product logo

Comments (5)

angela-d avatar angela-d commented on May 26, 2024

The postinstall script wasn't triggered by your install. You can run these commands manually to complete the install of autohosts and see if a more specific error appears:

sudo /var/lib/dpkg/info/autohosts.postinst

Did you remove old versions prior to installing, or is this a fresh install?

grep "VERSION=" /usr/local/bin/autohosts
grep: /usr/local/bin/autohosts: No such file or directory

Oops, this is something in the readme I forgot to update when v2.0 was released. Will fix.

Also, is it possible to alter which version of Steven Black's hosts file is used?

Totally.

nano /usr/bin/autohosts

Find:

wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -O /etc/hosts

And change https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts to the branch/version you want to use.

from autohosts.

frickymind avatar frickymind commented on May 26, 2024

Hi,
Thanks fot the reply. It's a new install. I've made the changes you suggested and the error has disappeared.
Cheers!

Also I like your comment:

hosts file curators: please keep your echo chambers to yourselves

hosts files are for adblocking, trackers and malware ONLY, not because you don't like shitposting sites (may as well ban reddit, too!)

from autohosts.

angela-d avatar angela-d commented on May 26, 2024

Awesome, glad it worked!!

Not sure why you had issues in the first place, but when I have free time I'll fire up a Mint install and see if there's something different about how they extract the deb. Most likely, it's how I packaged it that caused the issue.

Glad you like the dig at the censorship brigade! 😄

from autohosts.

angela-d avatar angela-d commented on May 26, 2024

Finally got a chance to run some tests on this - the bugs should be worked out of the latest installer!

If you attempt to install over v2.0.0 and/or purge the existing install, you may still run into this bug.
If you do, you can clear it so apt can do a successful install or removal:

sudo echo "" > /var/lib/dpkg/info/autohosts.postrm

The new version also has a new whitelist capability, so give it a run when you can!

(Be sure to back up ~/autohosts before upgrading!)

from autohosts.

frickymind avatar frickymind commented on May 26, 2024

from autohosts.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.