debian

“bad record MAC” SSL error between Java and PortgreSQL

℡╲_俬逩灬. 提交于 2019-12-24 04:01:27
问题 We've got here a problem of random disconnections between our Java apps and our PostgreSQL 8.3 server with a "bad record MAC" SSL error. We run Debian / Lenny on both side. On the client side, we see : main, WRITE: TLSv1 Application Data, length = 104 main, READ: TLSv1 Application Data, length = 24 main, READ: TLSv1 Application Data, length = 104 main, WRITE: TLSv1 Application Data, length = 384 main, READ: TLSv1 Application Data, length = 24 main, READ: TLSv1 Application Data, length = 8216

gnome 3.12 cannot be launched + locale does not help out

佐手、 提交于 2019-12-24 03:48:12
问题 I have recently installed debian "testing" jessie RC betta. I wanted to personalized system-wide the gnome-terminal by changing the custom default terminal size in the file /usr/share/vte/termcap/xterm . In fact, I just changed with gedit the the col and li numbers in the following line :co#80:it#8:li#24:\ . After I did that, I was not able to launch any more the gnome terminal 3.12.3. I got the following output: ~$ gnome-terminal (process:2879): Gtk-WARNING **: Locale not supported by C

How can I fix Ghost (glibc) BUG on Debian 6

时光总嘲笑我的痴心妄想 提交于 2019-12-24 02:44:43
问题 Problem is, that there seems to be no updates for glibc if I run apt-get upgrade How can I check if my system has this vulnerability, and how can I fix it? 回答1: Add the following lines to /etc/apt/sources.list (see https://wiki.debian.org/LTS/Using): deb http://http.debian.net/debian/ squeeze-lts main contrib non-free deb-src http://http.debian.net/debian/ squeeze-lts main contrib non-free Run > apt-get update Check that package list has been updated: > apt-cache show libc6 | grep Version

How do I remove debian packages using python apt API

旧城冷巷雨未停 提交于 2019-12-24 01:27:16
问题 I'm was trying this on Linux mint. I have been researching on how to remove packages using the python-apt API. The piece of code below was all I could come up with but nothing happens when I run it. I am trying to remove a single package right now but later I would like to remove a list of packages from a text file. I tried to use the answer found in this post and re-engineered it for removing but my logic does not work. Please give me some input. #!/usr/bin/env python # aptuninnstall.py

apt-get install specific version with non-cadidate dependencies

拟墨画扇 提交于 2019-12-24 01:03:55
问题 I want to build a debian package, which has a Build-Depends field and in it there is specific version of a library. I used to do mk-build-deps -i and then dpkg-builpackage , but I run into troubles when I specify specific version of a build depedency. I have build a minimal repeatable example: docker run -it --rm debian:jessie bash apt-get update && apt-get install -y devscripts mkdir -p /foo/debian cd foo/ echo "foo (1.0.0) UNRELEASED; urgency=medium * Initial release. (Closes: #XXXXXX) --

Anaconda installation of Tensorflow fails with Debian 8 VirtualBox

做~自己de王妃 提交于 2019-12-24 00:02:37
问题 I'm trying to install Tensorflow. I created a fresh Debian 8 VirtualBox for this purpose. Following the instructions here I downloaded and installed Anaconda with Python 3. I created a conda environment for Tensorflow and activated it. When trying to pip install Tensorflow it fails: (tensorflow)$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl The error is not a supported wheel on this platform I found a

go install not working

和自甴很熟 提交于 2019-12-23 23:07:44
问题 I am using go version go1.5.1 linux/amd64 on debian 8.2 3.16.0-4-amd64 . I installed golang using https://golang.org/doc/install. This is what i put in my ~/.profile file export GOPATH=$HOME/go export PATH=$PATH:/usr/local/go/bin:/home/shivams/go/bin Running go env on my machine is giving this output GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/shivams/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"

Debian Stretch and Jessie 32-bit libraries

混江龙づ霸主 提交于 2019-12-23 20:30:11
问题 For those looking for the answer, there it's, as it's not clear on other websites. This is required at least by the Intel compiler. Maybe it helps also for other software. 回答1: Just run those commands in your terminal. sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install build-essential gcc-multilib rpm libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 Or as root remove the "sudo" from them. 来源: https://stackoverflow.com/questions/30236342/debian-stretch-and

replace old-link-url to new-link-url with sed

最后都变了- 提交于 2019-12-23 16:34:18
问题 I'm writing a script in bash that would replace old-link-url to new-link-url my problem is that sed can't replace the url because of the slashes. If i put just some text it works. my code sed -e s/"$old_link"/"$new_link"/g wget2.html > playlist.txt 回答1: sed supports any character as separator, so if the pattern you are trying to replace contains / , use a different separator. Most commonly used are # and | sed 's|foo|bar|g' input sed 's#foo#bar#g' input 回答2: Don't forget to put double quotes

debian 安装配置lsyncd

Deadly 提交于 2019-12-23 15:39:05
安装lsyncd root@mysql-2:~# apt-get install -y lsyncd 整理需要同步的服务器 整理配置文件 root@mysql-2:/data/lsyncd# cat /etc/lsyncd.conf settings { logfile ="/data/mysql/project_nginx.log", statusFile ="/data/lsyncd/lsyncd.status", inotifyMode = "CloseWrite", maxProcesses = 8, -- maxConnections = 4, -- delay = 10, -- excludeFrom = file, -- excludeFrom 排除选项 } sync { default.rsyncssh, source = "/data/docker-compose", host = "192.168.1.23", targetdir = "/data/docker-compose", -- exclude = "/data/www/public_html/config.inc.php", #排除此文件不同步 -- maxDelays = 5,累计到多少所监控的事件激活一次同步,即使后面的delay延迟时间还未到 -- delay = 2, -- init =