Cannot install ubuntu Desktop environments
Apart for the blank desk top wallpaper without any icos or Launcher no login dialog appears after normal boot up. So I tried to install ubuntu-desktop from the root shell prompt. The command used was: apt-get install ubuntu-desktop. This does not work. The following output results:
1) Not using locking for read only lock file /var/lib/dpkg/lock
2) Unable to write to /var/cache/apt/
3) Thr package lists or status file could not be parsed or opened
I would be most grateful for your kind help.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Edmond Condillac
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
https:/
Please post full Terminal output here:
https:/
Afterwards, you can try running this command:
sudo apt-get install ubuntu-desktop
Running the command above WITHOUT sudo will not work.
Please read this:
Revision history for this message
|
#2 |
Thanks for your quick response. Now the problem boils down to not having access open up the Software Sources window by (System > Administration > Update Manager. This is Step 1 of the procedures.
Kindly advise further, if possible.
Revision history for this message
|
#3 |
There is a problem with the first bit of the instructions here.
(System > Administration > Update Manager) instructions apply to the Gnome Classic Desktop which is no longer the default and has not been since the introduction of 12.04.
Assuming you have Ubuntu 12.04 or later with the Unity desktop click the top icon in the dash and start typing "update" without the quotes. It will appear in the menu before you have finished typing. The rest of the instructions are correct however.
Revision history for this message
|
#4 |
If you check the link now you should see that it has been corrected
https:/
Revision history for this message
|
#5 |
Thanks for the instructions.
The output from running sudo cp /etc/apt/
cannot create regular file /etc/apt/
Kindly advise further,please.
Best regards
Revision history for this message
|
#6 |
It seems that your file system is read-only. You have to remount it in read-write mode with the command
sudo mount -o remount,rw /
Then try the commands given in previous answers
Revision history for this message
|
#7 |
sudo mount -o remount,rw /
sudo fuser -vki /var/lib/
Will unlock the packages for you
Revision history for this message
|
#8 |
Thanks for the kind help and instructions. I'vsudo cp /etc/apt/
sudo grep -R proxy /etc/apt/* ---- No output
echo $http_proxy ----- one blank line
echo $ftp_proxy ----- one blank line
grep proxy /etc/bash.bashrc ---- No output
sudo fuser -vvv /var/lib/dpkg/lock ---- No output
cat /etc/lsb-release ---- LISRIB=Ubuntu
uname -a ----------- LinuxDell3.
sudo rm /var/lib/
sudo rm /var/lib/dpkg/lock ---- No output
sudo cp -arf /var/lib/dpkg /var/lib/
sudo mv /var/lib/
sudo cp /var/lib/
sudo mv /var/lib/
sudo cp /var/lib/
sudo rm -rf /var/lib/
sudo rm -rf /var/lib/apt/lists ---- No output
sudo rm /var/cache/
sudo mkdir /var/lib/apt/lists ---- No output
sudo mkdir /var/lib/
LANG=C;sudo apt-get clean ---- No output
LANG=C;sudo apt-get autoclean ---- Reading Package lists......Done
LANG=C;sudo apt-get --purge autoremove ---- Reading Package lists......Done
LANG=C;sudo apt-get update -o APT::Cache-
sudo dpkg --configure -a ------- No output
sudo dpkg --clear-
LANG=C;sudo apt-get -f install-- Reading Package lists......Done
LANG=C;sudo apt-get --fix-missing install --------- Reading Package lists......Done
LANG=C;sudo apt-get update -o APT::Cache-
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \; ----- 64 numbered lines of output, some regarding software from respective vendorsas a service to Ubuntu users.
I hope this information is as required. Should the rest of the PackageManagerT
Many thanks for the help.
Revision history for this message
|
#9 |
It seems that you did not have a network connection in your recovery console, and consequently most of the commands failed.
For the Package Manager Troubleshooting Procedure, however, a functioning network connection is essential.
Revision history for this message
|
#10 |
From Recovery Menu the network feature was activated. Now there is a boot up, which freezes. the error messages displayed are:
1) swapon failed
2)initctl event failed
3) /etc/default/dmucs needs to be edited to enable dmucs
4) saned disabled: edit /etc/default/saned
This boot up has frozen after Checking battery state, which is reported to be OK.
Kindly advise if possible, please.
Thank you for the kind help.
Revision history for this message
|
#11 |
Thank you for your kind response and help. The modem is directly connected to the ethernet port, which has established a network connection in the recovery console. This is confirmed by the output to ping -c 4 8.8.8.8 where 4packets transmitted and 4 received, 0% packet loss. The commands are still failing as before. Your kind help and further advice would be most appreciated. Thank you very much.
Revision history for this message
|
#12 |
The recent error messages displayed at boot up are:
1) initilt : Event failed
2) Please edit /etc/default/dmucs to enable dmucs
3) saned disabled; edit /etc/default/saned
Kindly advise how to proceed, please.
Thank you for your kind help.
Revision history for this message
|
#13 |
The commands that failed completed later after a few more tries. The packages were updated/repaired. There were the following error messages at boot up:
1) initilt : Event failed
2) Please edit /etc/default/dmucs to enable dmucs
Then the blank desk top wallpaper without any icos or Launcher and no login dialog appeared after normal boot up.
Kindly advise further, if possible
Revision history for this message
|
#14 |
Thanks for the help At present the desk top icon appear but no Launcher nor login box nor the notification bar at the top of the screen I have accessed the terminal from the desk top and connected to the network - confirmed by pinging. However, the commands below do not wor:
1) LANG=C;sudo apt-get update -o APT::Cache-
2) LANG=C;sudo apt-get update -o APT::Cache-
Thank you once again for your kind help.
Revision history for this message
|
#15 |
I've retrieved the running system for now. Thanks for all your kind help with this.
Mighty good of you to help. Most appreciated