fedora,rhel,chroot,epel , How to use mock with epel-7


How to use mock with epel-7

Question:

Tag: fedora,rhel,chroot,epel

I have been trying to create a chroot for epel-7 using mock. Following this link: http://miroslav.suchy.cz/blog/archives/2015/05/20/why_mock_does_not_work_on_el_6_and_el7_and_how_to_fix_it/index.html I changed my .cfg file. Now when I tr to create chroot, I get the following error:

 sudo ./create_chroot.sh epel-7
INFO: mock.py version 1.2.8 starting (python version = 2.7.8)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled ccache
Mock Version: 1.2.8
INFO: Mock Version: 1.2.8
Start: yum install
Error: Nothing to do
ERROR: Command failed. See logs for output.

As I already made the changes in /etc/mock/*.cfg file, I am not sure why am I still getting this error. Could you please help me figure out what other changes are necessary? TIA


Answer:

Turns out the reason was that the repos were not being configured properly. Changed the repos and everything worked fine. Thanks.


Related:


I can't find the format file `pdflatex.fmt'!


php,latex,fedora,pdflatex,php-5.2
I want to run pdflatex from php on user request. Running from terminal works fine [php file.php] and creates pdf file. But when I try to run from browser by sending request to php, It gives this error "I can't find the format file `pdflatex.fmt'!" I am working with php5.2.6,...

In fedora container systemctl gives Failed to get D-Bus connection


docker,fedora
When I in a fedora container systemctl use, I get: Failed to get D-Bus connection:: Unknown error -1 Does someone know how to fix this? Or can systemctl not be used in a docker container? ...

'pecl install ibm_db2' can't find library


linux,db2,rhel,pecl
I'm trying to install ibm_db2 through pecl: pecl install ibm_db2 Then when it asks for an install dir, I have tried various places only to have the same result. It goes through a bunch of checks etc., then tries to 'make' and gets an error: /usr/bin/ld: skipping incompatible /home/db2inst1/sqllib/lib32//libdb2.so when...

How do I set the default window manager under Fedora 21?


fedora,xfce,mate
Fedora 21 comes with the ugly Gnome 3, and I installed XFCE and MATE, but I don't know, how to set either of them as a default X window manager. After I logout from Gnome 3, I don't see any selection from installed window managers.

mysql driver for qt database fedora


c++,mysql,qt,fedora
I understand it's the 100s time someone ask this but I'm still unable to have QMYSQL working. So I installed qt-mysql but I'm still having the QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE I copied /usr/lib64/qt4/plugins/sqldrivers/libqsqlmysql.so into /usr/lib64/qt5/plugins/sqldrivers/libqsqlmysql.so but no changes ... I've also added QT += sql...

Not able to install through Yum?


linux,fedora,yum
I have installed Sublime on my machine after unable to install I went to install mysqld i have got the following error: # yum install mysqld Loaded plugins: langpacks, refresh-packagekit Repository sublime2 is listed more than once in the configuration Repository sublime2-dev is listed more than once in the configuration...

Eclipse Fails to Load (Exit Code 13) on fresh Fedora 22 w/ latest OpenJDK


java,linux,eclipse,fedora,openjdk
Alright, before you chop off my head, I've spent the last two days poking around the internet trying to find a solution, and I'm at my wit's end. Additionally, I can't seem to login to askFedora, so here I am. So, having installed Eclipse through the terminal via sudo dnf...

How to enter Japanese hiragana characters to python 2.6 shell on linux?


python,linux,shell,unicode,fedora
I want to be able to enter the Hiragana characters via keyboard to python shell I already know how to display them. I do it like this : A = u'\u3042' print(A.encode("UTF-8")) and the output is あ as expected. But I intend to ask for user input, and the user...

Building Blender on Fedora 20, OSL compilation failed


c++,fedora,blender
When trying to build Blender on Fedora 20, I got the following error when running the install_deps.sh script: Linking CXX shared library liboslexec.so [ 81%] Built target oslexec make: *** [all] Error 2 ERROR! OpenShadingLanguage-1.5.11 failed to compile, exiting Does anyone know how to fix this compilation error ?...

Installing fedora-20 using vagrant


linux,vagrant,fedora
I have sucessfully installed vmware and vagrant in my win 7 64 bit system. I am trying to install Fedora using vagrant using following command: 1)vargrant init chef/fedora-20 output: A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read...

removing part of the file names


linux,bash,perl,redhat,rhel
I have a bunch of files like this: file123.txt.452 file456.txt.098 file789.txt.078 How can I remove the second dot and the numbers at the end from the file names? I tried using rename but I don't think my regex is correct: rename 's/txt.*/txt/' * ...

Working on a Dockerfile in order to build a WordPress image


wordpress,debian,docker,fedora,dockerfile
I'm a newbie using Docker, and I don't understand something. If I'm using the official Dockerfile used to build the official Wordpress image, we start with: FROM php:5.6-apache Then, to install extensions and models we have to use: RUN apt-get [install or Update] My question is: Why we are using...

IF statement not working in RHEL 6 (workd in RHEL 5)


regex,bash,if-statement,rhel
I have a simple if statement that works fine in RHEL 5, but for some inexplicable reason, fails in RHEL 6: if [[ ! $1 =~ "(one|two|three)" ]] ; then echo -e "\n***Invalid number" usage exit 1 else action=$1 fi I can use a case statement which works fine or...

While loop in bash using variable from txt file


linux,bash,rhel
I am new to bash and writing a script to read variables that is stored on each line of a text file (there are thousands of these variables). So I tried to write a script that would read the lines and automatically output the solution to the screen and save...

Run java with terminal


java,eclipse,fedora
Is it possible to run in terminal java program that contains multiple files? When I'm using javac main.java terminal can't find any files except main.java...

SDL2 resize buggy in Fedora 21 but fine in windows


c++,linux,resize,fedora,sdl-2
I'm building a cross platform C++ OpenGL game using SDL2 as the window manager, and I recently discovered that resizing the window has some strange issues in linux. Other windows like Terminal work fine for resizing. It may also be worth noting that Fedora is in a VMware Virtual Machine....

Cannot connect to rails server on Fedora 21


ruby-on-rails,fedora
I started rails server but http://192.168.56.104:3000 is not available. Its address is correct because I can see the test page of Apache at http://192.168.56.104:80. I started the server: $ rails s Warning: Running `gem pristine --all` to regenerate your installed gemspecs (and deleting then reinstalling your bundle if you use...

How to use mock with epel-7


fedora,rhel,chroot,epel
I have been trying to create a chroot for epel-7 using mock. Following this link: http://miroslav.suchy.cz/blog/archives/2015/05/20/why_mock_does_not_work_on_el_6_and_el7_and_how_to_fix_it/index.html I changed my .cfg file. Now when I tr to create chroot, I get the following error: sudo ./create_chroot.sh epel-7 INFO: mock.py version 1.2.8 starting (python version = 2.7.8)... Start: init plugins INFO: selinux...

Linux / Fedora sandboxing processes and filesystem changes


docker,sandbox,fedora,chroot,linux-containers
Is there a Linux (close) equivalent, that runs on Fedora, to the Windows program sandboxie? It's not perfect, but it basically creates a C:\Sandbox\\XYZ directory and any processes running in the XYZ sandbox are transparently (to the processes) locked to making changes in that folder. Sandboxie can allow processes running...

Sublime API missing


python,sublimetext,sublimetext3,fedora
I try to install 'Sublime Text 3' on Fedora 21 from official site, but when I execute "sublime.py" it says: Traceback (most recent call last): File "sublime.py", line 1, in <module> import sublime_api ImportError: No module named sublime_api but in "sublime.py" has: import sublime_api ...

Cloudbees Jenkins job cannot install packages via Yum


jenkins,fedora,cloudbees
I have Jenkins running on a Cloudbees Fedora 17 node. I need my job to be able to install certain packages to build my project correctly for deployment but my yum install commands fail because the jenkins user does not have the correct permissions. I cannot SSH into the box...

Use `grub-md5-crypt` in a script where user is prompted for password to encrypt


scripting,rhel,grub
As you already know from title, I want to configure an encrypted password for grub in /etc/grub.conf. I want to use a single script, where I will use grub-md5-crypt, enter my password that I want to encrypt, and sed that encrypted output in /etc/grub.conf. Second part is fine for me....

How to change version string of the kernel?


linux,kernel,version,fedora,uname
I'm very new to Linux and very new to building/compiling my own kernel. For starters, I'm just trying to figure out how to change the version string of my kernel. For instance, when I do uname -a, it prints out "Linux localhost.localdomain 3.11.10-100.fc18.i686". I'd like to customize that, but I'm...

Can I have a RPM depend on a directory?


linux,dependency-management,rpm,rhel,rpmbuild
I'm creating an RPM file (with rpmbuild) whose post-install script will create a file in /etc/X11/xinit/xinitrc.d/. To make sure that the directory already exists, I'd like to specify a dependency on a package which creates it. Is it correct in this case to add a Requires: /etc/X11/xinit/xinitrc.d line to the...

PhpMyAdmin Blank Page on fodora 22 localhost server [closed]


php,mysql,phpmyadmin,fedora,lamp
I follow this guide to install LAMP server on fedora 22 workstation How To Install LAMP Stack (Apache, MariaDB And PHP) In Fedora 22 Everything working well except phpmyadmin. When i need access it of the browser i see nothing (blank page) How i can fix this issue ? Any...

Error in linux console : Couldn't get a file descriptor referring to the console


linux,fedora,gnome-terminal
When I start Terminal the first 2 messages that i see it is : Couldn't get a file descriptor referring to the console Couldn't get a file descriptor referring to the console and then prompt from console , and nothing another , also this problem creates when type setfont :...

RHEL + Codeception: invalid mit-magic-cookie-1 keyerror cannot open display :2.0


linux,firefox,selenium,rhel,codeception
So I'm trying to run Codeception acceptance tests on a Linux server (with Selenium). I enter the command: ./codecept run acceptance (with flags such as --env firefox-linux) Codeception starts, pauses for a bit and then Firefox throws this error: Invalid MIT-MAGIC-COOKIE-1 keyError: cannot open display: :2.0 I read that this...

Moved Oracle 11.2 XE Database Directory, Connected to Idle Instance


database,oracle,oracle11g,listener,rhel
So I will start off by stating I have moved the regular install location of Oracle 11.2 XE to a logical volume (/oracle) I had created on my RHEL 6.6 server. After shutting down both the database and the Oracle listener, I performed... $ cp -R /u01/app/* /oracle $ rm...

Chroma key webcam video with gstreamer


linux,video,gstreamer,fedora
I'm trying to put together a green screen application with my Logitech C910 WebCam on Fedora 21. I've managed to get 1080p30 h264 video from the webcam to be displayed with gstreamer using the following command: gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! \ video/x-h264,width=1920,height=1080,framerate=30/1 ! \ h264parse ! avdec_h264 !...

Unable to change filesystem label using selinux policy module


fedora,selinux,libselinux
I am using fedora 21 I have written a selinux policy moudle for an application. I have defined new types is .te file and created a .fc file in which defines the labelling of files with the types I have created. i can successfully load the policy using "make load"....

puppet detect if a file changed but don't change it


jenkins,puppet,rhel
I want to manage the config.xml file of the jenkins-service with puppet. The problem is that if Puppet changes the config.xml file and than restarts the jenkins service, the config.xml file gets overwritten by the currently loaded configuration of jenkins and the changes made by puppet are lost. That's what...

Building libsndfile in Fedora with Ogg Flac and Vorbis


linux,fedora,libsndfile
I'm trying to build the libsndfile library in Fedora 20 with the added options of Flac, Ogg and Vorbis. So, as the readme says I installed flac ogg and vorbis using this command: sudo yum install flac libogg libvorbis After that I did the ./configure in libsndfile source like the...

RHEL Java application - specific name instead of generic java process


java,linux,process,rhel
I have a custom Java application running on my RHEL machine. I am running this Java application from a bash exec script with all the parameters and options appended. As a result, my Java application gets a generic name "java" in the system processes which is not useful for me...

Data destroy using shred agains ext4 filesystem [closed]


linux,rhel,ext4,journal,shred
I'm running shred against blockdevice with couple of etx4 filesystems on it. The blockdevices are virtual drives - RAID-1 and RAID-5. Controller is PERC H710P. command shred -v /dev/sda; shred -v /dev/sdc ... I can understand from shred man(info) page that shred might be no effective on journal filesystems but...

Docker 1.4.1 fails to start on Fedora 21: FATA[0000] EOF


docker,fedora
Recently my docker service on local Fedora 21 stopped working. When I try to run the daemon using: sudo systemctl start docker It ends with: Job for docker.service failed. See "systemctl status docker.service" and "journalctl -xe" for details. Checking docker status by sudo systemctl status docker ● docker.service - Docker...

Install red5 in Fedora


fedora,red5
This is my first question here, so please be compassionate. I am trying to install red5 on my fedora (latest version - 64 bit). Steps: cd /opt/ wget http://www.red5.org/downloads/red5/1_0_1/red5-1.0.1.tar.gz tar xzf red5-1.0.1.tar.gz mv red5-server-1.0/ red5 cd /opt/red5 ./red5.sh & Red5 is installed successfully but when I open http://myip:5080 then it...

How to prevent parallel installation of multiple version of an RPM?


linux,centos,rpm,rhel,rpmbuild
I'm creating an RPM file (with rpmbuild). Currently it is possible to install several versions of the RPM in parallel (apparently RPM doesn't prevent this), but this causes problems because my %pre and %post scripts create and delete some files, so multiple parallel installations will conflict with each other. Is...

piping stockfish misbehaves in fedora


c++,pipe,virtual-machine,fedora
Somewhere in my project I use fork and pipe to execute another process and pipe its I/O to communicate with it (I'm writing it in C++). There is no problem when I compile it in Ubuntu 14.04, it will work just fine, but I compiled it in fedora on a...

Popular error - org.sqlite.JDBC


java,eclipse,sqlite,jdbc,fedora
package aplikacjajava; import java.sql.*; public class main { public main( String args[] ) { Connection c = null; try { Class.forName("org.sqlite.JDBC"); c = DriverManager.getConnection("jdbc:sqlite:projekt.db"); } catch ( Exception e ) { System.err.println( e.getClass().getName() + ": " + e.getMessage() ); System.exit(0); } System.out.println("Opened database successfully"); } } Error: java.lang.ClassNotFoundException: org.sqlite.JDBC I...

Problems verifying SSL certificate


ssl,fedora,signing
For school we are currently studying SSL certificates. For this week's assignment we had to install Fedora Workstation on VirtualBox and do some SSL-stuff. One of the assignments was the following: generate a public/private keypair and a CSR with the openssl command. I generated a public/private keypair using the following...

python socket.recv hangs, however I see the frame in tcpdump


python,sockets,rhel
I have below code to send command, but python script never exits. it hangs. i am using RHEL 6.4 x86_64. scapy srp1 also hangs. from socket import * from scapy.all import * from myproto import * def sendeth(REQUEST, interface = "eth0"): """Send raw Ethernet packet on interface.""" s = socket.socket(socket.AF_PACKET,...

RHEL - can't sudo from script


linux,rhel
I have a script where I'm trying to change user (from root) on boot. In /etc/rc.d/rc.local, I've changed it to cd into the script dir and execute it. It all works except for when it tries to execute: sudo -u newuser ./myscript.sh I get an error message: sorry, you must...

trying to download a dataset from a website


apache,download,website,server,fedora
I am trying to download a dataset from a website but I can't download the whole folder .. I have to download each file separately which will need a lot of time. I am wondering if there is anyway to download the whole folder at a time?? The website link:...

Force linux to use php as php55


php,linux,fedora
Helllo, I have a little problem here. I have PHP 5.3 installed and it's accessible via php command, I also have php 5.5 accessible as php55 command. Now I need to force linux to use php55 when I write php command. Simple way: How I switch the versions of php?...

Unable to start postgresql service in Redhat linux 7


postgresql,rhel
I have installed postgresql 9.4 on Redhat 7 server.It was installed through postgresql-9.4.3-1-linux-x64.run. It displayed a clear message"postgres is installed your machine". Now when I login as su - postgres It doesn't ask for password and goes to bash prompt. If I type psql displays "command not found". When I...

P4API.cpp:39:20: fatal error: Python.h: No such file or directory


python,linux,fedora,p4python
Getting fatal error while installing p4python on linux machine. configuration: Python 2.7.5 os : fedora Below is the message I am getting while installing "p4python": $ pip install p4python creating build/lib.linux-x86_64-2.7 copying P4.py -> build/lib.linux-x86_64-2.7 running build_ext building 'P4API' extension creating build/temp.linux-x86_64-2.7 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2...

Will application built on RHEL6.4 be able to run on Centos 6.4 unupdatedly


centos,rhel
I learn that RHEL and Centos has the exact same source code. So my question here is if one application built for RHEL 6.4, could we just install and make it running on Centos 6.4 without any update? And another question is RHEL and Centos will always use the same...

NFS Vagrant on Fedora 22


vagrant,rpc,fedora,nfs,libvirt
I'm trying to run Vagrant using libvirt as my provider. Using rsync is unbearable since I'm working with a huge shared directory, but vagrant does succeed when the nfs setting is commented out and the standard rsync config is set. config.vm.synced_folder ".", "/vagrant", mount_options: ['dmode=777','fmode=777'] Vagrant hangs forever on this...