Pages

Saturday, 25 April 2015

Fixing dpkg: Fedora workstation

hello friends! so, this will be my first post on fedora related issues .. I found problems while using dpkg (short for debian package) in fedora ... dpkg is basically used to install .deb packages in your linux operating system!

dpkg is not present in fedora! So you have to install it first using the following command!

sudo yum install dpkg

it will now ask you for the password.. so provide it and it will be installed in the system! So many of you may also face a error at this time says that users is not present in sudoers file! so to add our user in the sudoers file use the following two commands in terminal!

first become superuser in terminal .. for that purpose use the following command

su

after hitting enter terminal will again ask for the password provide it and now you have a superuser or root terminal! Now i need you to enter the following command 

usermod sampleusername -a -G wheel

After performing these tasks now restart your fedora operating system!
after restarting again try to install dpkg using the command 

sudo yum install dpkg

This time dpkg will install in your operating system without any error ! 
so now the time has come to install .deb packages in your fedora operating system... lets try to install sublime text editor in fedora using the following command in the terminal


sudo dpkg -i sublime-text_build-3083_amd64.deb

and it gives the following error 


lets have a look at the error "failed to open package into file '/var/lib/dpkg/available' for reading: no such file or directory"

so it says there is no file name "available" in "/var/lib/dpkg/" so we need to go there and make a available file there so for that purpose use the following commands

cd /var/lib/dpkg/

sudo touch available

sudo chmod -R 777 available

after doing this three tasks you will be able to install .deb packages in fedora operating system! :)

1 comment:

  1. Thank you for sharing your stuff on blog. It is doubtless that we have similar interests. Something is very helpful to me. office furniture

    ReplyDelete