Downgrade packages using apt-pinning
The apt_preferences manpage says that you can downgrade packages by specifying a priority above 1000. I'd like to downgrade all my packages to the stable distribution. My sources.list contains stable, testing and unstable.
This is my apt.conf:
This is my preferences file:
Package: * Pin: release a=stable Pin-Priority: 1001
apt-get update and
apt-get -s upgrade but apt does not suggest downgrading. For example I have the version 1.18.0-3 of libuv1 installed which is newer than the current stable version in stretch which is 1.9.1-3.
See also questions close to this topic
selenium chromedriver headless on vps sometimes throws ConnectionResetError: [Errno 104] Connection reset by peer
i have this python script:
options = Options() options.add_argument('--headless') options.add_argument('--disable-gpu') driver = webdriver.Chrome("/usr/bin/chromedriver", chrome_options=options) driver.set_window_size(300, 500) wait = WebDriverWait(driver, 30)
if i run it on my pc it will work just fine
the problem is when i use it on a vps, SOMETIMES it throws me this bunch of erros:
Traceback (most recent call last): File "acad.py", line 31, in <module> driver = webdriver.Chrome("/usr/bin/chromedriver", chrome_options=options) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__ desired_capabilities=desired_capabilities) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__ self.start_session(desired_capabilities, browser_profile) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 310, in execute response = self.command_executor.execute(driver_command, params) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/remote_connection.py", line 466, in execute return self._request(command_info, url, body=data) File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/remote_connection.py", line 490, in _request resp = self._conn.getresponse() File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse response.begin() File "/usr/lib/python3.6/http/client.py", line 297, in begin version, status, reason = self._read_status() File "/usr/lib/python3.6/http/client.py", line 258, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) ConnectionResetError: [Errno 104] Connection reset by peer
i have chromedriver on /usr/bin and chrome is under /usr/bin/google-chrome-stable
Update dockerfile image without downloading dependencies
I am new to docker. I use an image debian to host a J2EE application.
FROM debian WORKDIR /app ADD . /app RUN apt-get update && apt-get --assume-yes install \ default-jre \ default-jdk \ maven RUN mvn clean install CMD ["mvn", "ninja:run"]
I build my image by doing this:
docker build . -t rssaggregator
Let's suppose I add a new dependency to download. How can I update and build the image without downloading the dependencies again?
Thanks for your help!
grakn 1.0.0 cannot start queue on debian/wheezy with jdk8
I installed grakn 1.0.0 on debian/wheezy with jdk8
while starting grakn server it says
STORAGE .... STARTED QUEUE ..... FAILED
I found nothing useful in the log directory.
any clues where I could look or where I could ask will be appreciated
removing damaged package ubntu without uninstalling the application
I have a Jenkins server that I want to install sonarqube on it, but I get an error when trying to install some packages. looks like Jenkins package is corrupted or something, I want to remove the damaged package (ubuntu) without uninstalling my Jenkins because I have all my configurations there.So I dont want to use commands like:
sudo apt-get remove --purge jenkins
Any suggestion ?
this is the relevant info:
sudo apt autoremove-
Setting up jenkins (2.89.3) ... /var/lib/dpkg/info/jenkins.postinst: 12: /etc/default/jenkins: allow-same-origin: not found dpkg: error processing package jenkins (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: jenkins E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg --configure -a
Setting up jenkins (2.89.3) ... /var/lib/dpkg/info/jenkins.postinst: 12: /etc/default/jenkins: allow-same-origin: not found dpkg: error processing package jenkins (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: jenkins
apt -get install updates not working
I want to install updates and cmatix to Kali Linux. When I give the command:
apt -get install updates
E: command line option 'g' [from -get] is not understood in combination with other options.
My internet connection is active and working fine.
I have installed and setting up Kali Linux Live Persistence and running it on a mac computer.
Docker on a linux VMware machine: error with apt-get and proxy
I've a VMware machine with linux mint 18.3 on it (the host machine is a windows 10). The host machine is behind a proxy. The guest machine (linux mint) network is configured as "Bridged"?
I try to write a simple Dockerfile but have issues with apt-get command:
FROM ubuntu:xenial RUN apt-get update && apt-get install -y \ bzip2 \ g++ \ make \ ncurses-dev \ wget \ zlib1g-dev
It gives me:
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com'
I tried adding in the Dockerfile:
ENV http_proxy 'http://proxy_adress:3128' ENV https_proxy 'http://proxy_adress:3128'
and got this error:
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'proxy_adress'
Do I have to change something in the VMware configuration? or in the Dockerfile?