You are not logged in.
Hi there! I get packages related problem:
Error code 60, says there are (held) broken packages present, so I cannot add any more soft (neither via synaptic nor command line).
History: (I'am a newbie to Linux at all and came from win xp/7, and it seems the main thing to mention ) While configuring/updating q4os on my laptop I've made an attempt to download and install manually couple of text editors (for web developing) from linux.softpedia.com (and sourceforge.net) which are zip/tar.gz archived source files and need few more tricks for final soft installation (which I did not know before)). Although I did not succeed in doing so it seems I've spoiled my existing packages system. Next I've had a hard entire day trying to repair things resulted to broken packages (googling for info/instructions etc.).
Hence I tried a whole bunch of things advised here and there, like: sudo apt-get --fix-broken install, sudo rm /var/lib/apt/lists/* -vf, sudo apt-get update, sudo apt-get clean, sudo apt-get autoclean, sudo apt-get autoremove, sudo dpkg --configure -a, sudo apt-get update besides trying synaptic settings (and God knows what else). I know I've messed everything .
Now the thing is I don't want to reinstall the whole OS but clear up all my packages (dependencies whatever ..), Restore /etc/apt/sources.list file to its default state, so I can set up profile and install my packages etc. all over. Please wise guys let me know how. And another question is: is there a way to create sort of 'System Restore Point' or handy way to create 'System Backup file' ?
Offline
First, fix packages dependencies. We have a handy tool to autofix broken deps in Q4OS, just run in terminal:
$ sudo dash /usr/share/apps/q4os_system/bin/qapt_fix.sh
"is there a way to create sort of 'System Restore Point' or handy way to create 'System Backup file' ?"
Not now. There are a few backup tools in Debian, but they need to be manually installed and cofigured.
Offline
ellie - don't feel lonesome! I think most of us (if not all) have done similar. Usually we just "bite the bullet" and re-install!
Hope you get it going without having to do that!
Offline
Hi ellie. Don't panic, and don't give up. We were all "noobies" once. Hopefully the folks here can get you back to where you were.
Just a few tips for the future, if you find some 3rd-party software you like on-line, take a moment and ask questions here FIRST before trying to install anything that isn't in synaptic.
Also, a lot of 3rd-party software for Linux will be packaged for your specific system, and the way you can recognize this is by the extention ".deb" for Debian systems, like Q4OS. [Example: slimjet_i386.deb ] These packages will typically install all dependencies. Use "GDebi Package Installer" to install .deb packages.
One more. NEVER try to install anything listed as a "ppa". That is for Ubuntu-based distros, not pure Debian distros...like Q4OS.
Once you get your system back up to speed, come back and start a new thread asking about "How to backup your system". There are a few easy ways do this, but first let's get you back on track.
Last edited by MC (2016-01-08 19:54)
Q4OS running Xfce
Offline
Thank you guys, I'm real glad to be not alone here .
So I've ran sudo dash /usr/share/apps/q4os_system/bin/qapt_fix.sh and sudo apt-get update after and rebooted. Next, Profiling went OK (From initial welcome popup window), Video codecs installed OK, even VLC install succeeded (previously removed by myself) but again - no other packages installable.
e.g. Trying to install 'Update Manager' from 'Software Center', so on a halfway run (I'm not an englishman sorry:)) it says: (Header) "Error - Setup Wizard". (Body) "Simulation not successful, sorry, I cannot install now. Cleaning and Cancelling" (just the same thing).
It is all about broken (messed up) packages. Maybe the only true way for me is to reinstall q4os? It's good I still can access OS to backup my personal files needed, but I think would be a bit better to cure it up without radical surgery ))
Offline
By the way, does anyone know how to recover sources.list file (I suspect it is being messed too), for I tried to install java8(back then) and it added some repo in turn but finally failed to install java. Command xfwrite /etc/apt/sources.list opens an empty file isn't it weird?
Offline
Hi ellie,
I am still learning linux terminal config but, this is what I did to fix a corrupted package sources.list.d
------------ this command will remove un-needed dependicies
sudo apt-get autoremove
-------------------------------- This command will install any pending packages waiting to be instlaled:
sudo apt-get install -f
-------------------------------- Logout (or reboot) and log back in
-----------THEN------------- See if you can run -------> sudo apt-get update
---------- If still not working ---------------
--------- Do the following: -------
FIRST:
Check the sources.list.d files and make sure # sign is not in front of any needed repository get urls: below is how my lists are configured:
(I once clicked in Synaptic disable all repositories and it put a # sign in front of all my repository urls)
---------------- open each list file like this --------------------
sudo nano /etc/apt/sources.list.d/each file name. For example to edit 10_q4os.list ---> cd /etc/apt/sources.list.d --> sudo nano 10_q4os.list
this is 10_q4os.list >>>>>>>>>>>>>>>>>>
------ Contents of 10_q4os.list is below---------
# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
deb http://q4os.org/q4repo q4os-1-0-cn main
#deb-src http://q4os.org/q4repo q4os-1-0-cn main
------------------------------------------------------------------------------------------
this is 20_debian_jessie.list >>>>>>>>>>>>>>>>>>>>>
# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
deb http://ftp.debian.org/debian/ jessie main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates contrib non-free main
#deb-src http://security.debian.org/ jessie/updates contrib non-free main
# jessie-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
#deb http://ftp.debian.org/debian/ jessie-proposed-updates contrib non-free main
#deb-src http://ftp.debian.org/debian/ jessie-proposed-updates contrib non-free main# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
deb http://ftp.debian.org/debian/ jessie main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates contrib non-free main
#deb-src http://security.debian.org/ jessie/updates contrib non-free main
# jessie-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
#deb http://ftp.debian.org/debian/ jessie-proposed-updates contrib non-free main
#deb-src http://ftp.debian.org/debian/ jessie-proposed-updates contrib non-free main
-------------------------------------------------------------------------------------
This is 30_jessie_backports.list >>>>>>>>>>>>>>>>>
# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
# jessie-backports, previously on backports.debian.org
deb http://ftp.debian.org/debian/ jessie-backports main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie-backports main contrib non-free
------------------------------------------------------------------------------------------------------------
This is deb-multimedia-ipc.list >>>>>>>>>>>>>>>>>>>>>>>>>>
deb http://www.deb-multimedia.org jessie main non-free
_________________________________________________________
THEN -------------> Run these commands to clean things up and rebuild package lists.
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
------------------- Let us know if this works for you like it did for me ----------------------
Others may know additional steps beyond my abilities.
Bobby
Last edited by bobby (2016-01-09 08:49)
No Longer Using Q4OS
Offline
Eventually I just reinstalled OS - it turned to be magically stubborn to commands, so hi there again! . But the material above I've saves for my future reference, thanx a lot Bobby!
Now I want to get a nice text editor (or IDE) for web-developing purposes. I came across one "Enki 15.05.0" but considering my last dummy experience I want to ask other folks for advise about proper (as a 3-rd party soft) installation. Here (http://software.opensuse.org/download.h … ckage=enki) it dives an instruction on Debian based installation and I want to make sure it is all correct for Q4OS. Either way can anyone give me an alternative nice (free)) editor ?
Offline
Here (http://software.opensuse.org/download.h … ckage=enki) it dives an instruction on Debian based installation and I want to make sure it is all correct for Q4OS.
Yes, instructions are absolutely correct, please strictly follow Debian 8/Jessie way. Q4OS is Debian 8/Jessie actually, so feel free to install any Debian 8/Jessie compatible software. Nonetheless, you should install software from third-parties carefully, we strongly recommend to use software from reliable sources only.
Offline
Hi ellie. Glad you are still with us.
A really good, heavy duty text editor for you may be Geany. Here's their website: http://www.geany.org/
If this looks good to you, open synaptic and search: geany
Or, in your terminal;
sudo apt-get install geany
Q4OS running Xfce
Offline
MC, thank you for link to geany.org . I also have been looking for a great editor.
Bobby
No Longer Using Q4OS
Offline
ellie, Your Welcome !
No Longer Using Q4OS
Offline
Hi again guys! Nearly just the same problem I've got now. I've checked my "10_q4os.list" and "30_jessie_backports.list", they're identical to what Bobby shows above, but "20_debian_jessie.list" is a bit shortened somehow (pasting below:)
# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
deb http://ftp.debian.org/debian/ jessie main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates contrib non-free main
#deb-src http://security.debian.org/ jessie/updates contrib non-free main
# jessie-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
#deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
#deb http://ftp.debian.org/debian/ jessie-proposed-updates contrib non-free main
#deb-src http://ftp.debian.org/debian/ jessie-proposed-updates contrib non-free main
( and this is it)
I mean may be this is not the point, but after my attempt to install some russian app (yandex-disk) my application installing system went wrong:
ellie@q4orion:~$ apt-get update (answers:)
E: Type '«deb' is not known on line 2 in source list /etc/apt/sources.list
E: The list of sources could not be read.
///////////////////////////////////////////////////////////////////////
ellie@q4orion:~$ sudo dash /usr/share/apps/q4os_system/bin/qapt_fix.sh // to fix packages dependencies (answers:)
Waiting for package system to be released ..
Cannot open lock file!
Unable to lock: /var/lib/apt/lists/lock
[CHKPKSYS] >> Package system status: Busy !
Not ready, waiting.
..and so on
I'm totally confused at this point, just want to recover my last system state,
before I ran commands:
cp /etc/apt/sources.list /etc/apt/sources.list_backup
echo «deb deb http://repo.yandex.ru/yandex-disk/deb stable main» >> /etc/apt/sources.list
wget -O — http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG | sudo apt-key add -
apt-get update
apt-get install yandex-disk
exit
Offline
Your '20_debian_jessie.list' file is all right. The problem seems to be the line:
echo «deb deb http://repo.yandex.ru/yandex-disk/deb stable main» >> /etc/apt/sources.list
It should be:
echo "deb http://repo.yandex.ru/yandex-disk/deb stable main" >> /etc/apt/sources.list.d/custom-repo.list
You have to reboot first and fix your system in terminal:
$ sudo su
$ mv /etc/apt/sources.list_backup /etc/apt/sources.list
$ apt-get update
$ dash /usr/share/apps/q4os_system/bin/qapt_fix.sh
$ echo "deb http://repo.yandex.ru/yandex-disk/deb stable main" >> /etc/apt/sources.list.d/custom-repo.list
$ wget -O — http://repo.yandex.ru/yandex-disk/YANDEX-DISK-KEY.GPG | sudo apt-key add -
$ apt-get update
$ apt-get install yandex-disk
Offline
Thanx a lot !! I'm gonna let them know they have a misprint in their article
Offline