Comments (5)
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.
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.
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.
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.
from autohosts.
Related Issues (5)
- Cannot uninstall Autohosts HOT 24
- mozilla.org is blocked? HOT 3
- does this not put entries in /etc/hosts? HOT 4
- Uninstalling on mac HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autohosts.