HOW TO USE TERMINAL TO RUN COMMANDS?

Asked by megamegh

Hi, i just installed Ubuntu and i am a complete noob at most of its features. I was wondering how to use terminal. I paste the code in but i dont know what to do after. do i just close the window and my command will be processed or what? Thank You!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
megamegh
Solved:
Last query:
Last reply:
Revision history for this message
Mathias Uebelacker (muebelacker) said :
#1

Hello,

please post what kind of command should be started. A build in command, a application, a bash script? (The easy way to get a solution is to post your code.
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#2

i wanted to install wine to run .exe files.
code: sudo aptitude update
          sudo aptitude install wine

Revision history for this message
Spenser Gilliland (spenser-gilliland) said :
#3

Did everything seem to be ok. Did you get a message that looked like

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  xdg-utils
The following NEW packages will be installed:
  wine
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.3MB of archives.
After unpacking 47.9MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com feisty-backports/universe wine 0.9.41-0ubuntu2~feisty1 [10.3MB]
Fetched 10.3MB in 1m35s (108kB/s)
Selecting previously deselected package wine.
(Reading database ... 134856 files and directories currently installed.)
Unpacking wine (from .../wine_0.9.41-0ubuntu2~feisty1_i386.deb) ...
Setting up wine (0.9.41-0ubuntu2~feisty1) ...

If yes, then wine was installed you can now just leave the terminal by typing exit or by just clicking the x in the top right corner of the window.

Revision history for this message
megamegh (megamegh593) said :
#4

do i just type in the code and let it run?

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#5

Hello,

yes, just open a terminal and enter, at the command prompt:
sudo aptitude update (hit enter)
enter you root password (hit enter)
sudo aptitude install wine (hit enter)
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#6

i tried that and nothing shows up. When i press enter, it just makes a new line. Also when i type my password there are no characters that show.

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#7

Hello,

that you do not see your password is correct. Okay at first to fix your problem install wine via synaptic. gnome-panel ->system ->administration ->synaptic package manager ->search for wine ->mark wine for install by left clicking the checkbox ->hit the apply button.

To check whats went wrong with the command line installation look at this:
mathias@mathias-laptop:~$ sudo aptitude update
Hole:1 http://archive.ubuntu.com feisty Release.gpg [191B]
Hole:2 http://archive.ubuntu.com feisty/main Translation-de [85,7kB]
...
Did your terminal show you something that look like this?
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#8

i have no synaptic package manager under administration,

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#9

Hello,

so how do you installed ubuntu. The synaptic package manager is installed by default. Please try sudo apt-get install synaptic (only to see whats happens) and how do you open your terminal?
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#10

i installed ubuntu with a live cd and i open teminal by applications>accessories>terminal. Also, nothing happens when i try sudo apt-get install synaptic.

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#11

Hello,

please enter aptitude in a terminal and post whats happens (only the command aptitude)
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#12

a black and blue scrn shows up

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#13

Hello
Okay that shows that aptitude is installed, please enter aptitude in a terminal a after aptitude comes up enter u for update become root and shows what happens.
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#14

it says "E: Subprocess exited with an error -- did u type your password correctly?"

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#15

Hello,

please check two things at first is there a crash file in the /var/crash directory and second is there a file called sources.list in the /etc/apt directory.
br
Mathias

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#16

Hello,

please start synaptic from a terminal by entering sudo synaptic.
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#17

everytime im asked to put in my password, there's an error message after

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#18

Hello,

try to change the root password:
gnome-panel ->system ->administration ->User/Groups -> select root -> hit the properties button and change the password,
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#19

i opened synaptic package manager

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#20

Hello,

okay then install wine via synaptic (see above)
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#21

thank u that worked but what should i do with my terminal problem? How will i update?

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#22

Hello,
for an update use the update-manager. Enter sudo /usr/bin/update-manager in a terminal. For your terminal problem check apt and aptitude within the synaptic.
br
Mathias

Revision history for this message
megamegh (megamegh593) said :
#23

should i reinstall them or what??

Revision history for this message
megamegh (megamegh593) said :
#24

i also cant apply any installations

Revision history for this message
megamegh (megamegh593) said :
#25

is this because im not admin?

Revision history for this message
megamegh (megamegh593) said :
#26

.